Skip to content

Instantly share code, notes, and snippets.

@David-Hackro
Created June 30, 2017 03:21
Show Gist options
  • Save David-Hackro/94ec456b4de40ede56312a2a2553bd73 to your computer and use it in GitHub Desktop.
Save David-Hackro/94ec456b4de40ede56312a2a2553bd73 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/background_light"
android:fitsSystemWindows="true"
>
<android.support.design.widget.AppBarLayout
android:id="@+id/main.appbar"
android:layout_width="match_parent"
android:layout_height="340dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
>
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/main.collapsing"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_scrollFlags="scroll|enterAlwaysCollapsed"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
>
<ImageView
android:id="@+id/photo_patient"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@mipmap/sinimagen"
android:visibility="visible"
/>
<ImageView
android:id="@+id/btn_image_change"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="bottom|left"
android:src="@mipmap/photo_camera"
/>
<android.support.v7.widget.Toolbar
android:id="@+id/main.toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_collapseMode="parallax"
>
</android.support.v7.widget.Toolbar>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/years_patient"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dp"
android:layout_marginTop="3dp"
android:layout_marginBottom="3dp"
android:visibility="visible"
/>
<TextView
android:id="@+id/lastConsulting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="5dp"
android:visibility="gone"
android:layout_marginTop="3dp"
android:layout_marginBottom="3dp"
android:gravity="center_vertical"/>
<TextView
android:id="@+id/peso_patient"
android:layout_below="@+id/years_patient"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="5dp"
android:visibility="gone"
/>
<TextView
android:id="@+id/div_allergy"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ALERGIAS"
android:textColor="@android:color/white"
android:layout_below="@+id/peso_patient"
android:background="@color/colorPrimary"
android:paddingLeft="5dp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/txt_allergy"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/div_allergy"
android:layout_marginLeft="5dp"
android:lineSpacingExtra="5dp"
android:textColor="@android:color/black"
/>
<TextView
android:id="@+id/div_diagnostic"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/diagnostics"
android:textColor="@android:color/white"
android:layout_below="@+id/txt_allergy"
android:background="@color/colorPrimary"
android:paddingLeft="5dp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/txt_diagnostic"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/div_diagnostic"
android:layout_marginLeft="2dp"
android:textColor="@android:color/black"
android:layout_marginRight="2dp"
android:layout_marginBottom="1dp"
android:layout_marginTop="1dp"
android:lineSpacingExtra="5dp"
/>
<TextView
android:id="@+id/div_treatment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/tratamients"
android:textColor="@android:color/white"
android:layout_below="@+id/txt_diagnostic"
android:background="@color/colorPrimary"
android:paddingLeft="5dp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/txt_treatment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/div_treatment"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginBottom="1dp"
android:layout_marginTop="1dp"
android:lineSpacingExtra="5dp"
/>
<TextView
android:id="@+id/div_notes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="NOTAS"
android:textColor="@android:color/white"
android:layout_below="@+id/txt_treatment"
android:background="@color/colorPrimary"
android:paddingLeft="5dp"
android:textStyle="bold"
/>
<RelativeLayout
android:id="@+id/rl_background"
android:layout_below="@+id/div_notes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
>
<ImageView
android:id="@+id/icon_antecedentes"
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/ic_antecedentes_48"
/>
<TextView
android:id="@+id/lbl_icon_antecedentes"
android:layout_toRightOf="@+id/icon_antecedentes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Antecedentes Importantes"
android:textColor="@android:color/black"
android:textStyle="bold"
/>
<EditText
android:enabled="false"
android:id="@+id/edit_text_background"
android:layout_below="@+id/lbl_icon_antecedentes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:textColor="@drawable/disable_edit_text"
/>
<TextView
android:id="@+id/btn_edit_backround"
android:layout_below="@+id/edit_text_background"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit"
android:textColor="@android:color/white"
android:textStyle="bold"
android:background="@drawable/borderaroundtxt_blue"
android:layout_alignParentRight="true"
/>
<TextView
android:layout_below="@+id/btn_edit_backround"
android:layout_width="match_parent"
android:background="@color/colorAccent"
android:layout_marginTop="5dp"
android:layout_height="1dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_below="@+id/rl_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
>
<ImageView
android:id="@+id/icon_observations"
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/ic_observaciones_48"
/>
<TextView
android:id="@+id/lbl_icon_observations"
android:layout_toRightOf="@+id/icon_observations"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/observations_patient"
android:textColor="@android:color/black"
android:textStyle="bold"
/>
<EditText
android:enabled="false"
android:id="@+id/edit_text_observations"
android:layout_below="@+id/lbl_icon_observations"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@drawable/disable_edit_text"
android:textSize="15sp"
/>
<TextView
android:id="@+id/btn_edit_observations"
android:layout_below="@+id/edit_text_observations"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit"
android:textColor="@android:color/white"
android:textStyle="bold"
android:background="@drawable/borderaroundtxt_blue"
android:layout_alignParentRight="true"
/>
<TextView
android:layout_below="@+id/btn_edit_observations"
android:layout_width="match_parent"
android:layout_marginTop="5dp"
android:background="@color/colorAccent"
android:layout_height="1dp"/>
</RelativeLayout>
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"
/>
</RelativeLayout>
</android.support.v4.widget.NestedScrollView>
<TextView
android:id="@+id/name_patient"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_collapseMode="pin"
android:gravity="center"
android:alpha="0.7"
android:textColor="@android:color/white"
android:background="@color/cardview_dark_background"
android:textStyle="bold"
android:textSize="20sp"
/>
</android.support.design.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment