diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-07-07 19:12:22 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-07-07 19:12:22 -0700 |
commit | d1f764cf95fbd4d1bb6c051f3f26e074f4fff646 (patch) | |
tree | 146633c6aaf5f6608f885f6ea2e2d7c6b094c92a /app/src/main/res | |
parent | bf7a44685f1ee11a200bfc8f69d81d1b47912588 (diff) | |
download | dsub-d1f764cf95fbd4d1bb6c051f3f26e074f4fff646.tar.gz dsub-d1f764cf95fbd4d1bb6c051f3f26e074f4fff646.tar.bz2 dsub-d1f764cf95fbd4d1bb6c051f3f26e074f4fff646.zip |
Add drawer header
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/drawer_header.jpg | bin | 0 -> 35612 bytes | |||
-rw-r--r-- | app/src/main/res/layout/drawer_header.xml | 16 |
2 files changed, 6 insertions, 10 deletions
diff --git a/app/src/main/res/drawable/drawer_header.jpg b/app/src/main/res/drawable/drawer_header.jpg Binary files differnew file mode 100644 index 00000000..f54a30e2 --- /dev/null +++ b/app/src/main/res/drawable/drawer_header.jpg diff --git a/app/src/main/res/layout/drawer_header.xml b/app/src/main/res/layout/drawer_header.xml index fe0a9f2d..91fad9fe 100644 --- a/app/src/main/res/layout/drawer_header.xml +++ b/app/src/main/res/layout/drawer_header.xml @@ -4,7 +4,7 @@ android:layout_height="178dp" android:orientation="vertical" android:weightSum="1" - android:background="?attr/selectableItemBackground"> + android:background="@drawable/drawer_header"> <LinearLayout android:layout_width="match_parent" @@ -12,7 +12,8 @@ android:orientation="horizontal" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" - android:layout_alignParentStart="true"> + android:layout_alignParentStart="true" + android:background="?attr/selectableItemBackground"> <LinearLayout android:orientation="vertical" @@ -24,19 +25,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16dp" - android:textColor="?android:textColorPrimary" - android:textSize="14sp" - android:textStyle="bold"/> + style="?attr/actionbarTitleStyle"/> <TextView android:id="@+id/header_user_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16dp" - android:layout_marginTop="5dp" - android:textColor="?android:textColorSecondary" - android:textSize="14sp" - android:textStyle="normal"/> + style="?attr/actionbarSubtitleStyle"/> </LinearLayout> <View @@ -46,7 +42,7 @@ <ImageView android:id="@+id/header_select_image" - android:src="?attr/select_server" + android:src="@drawable/main_select_server_dark" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" |