]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drawer: colorful header
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 29 Nov 2018 18:51:26 +0000 (18:51 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 29 Nov 2018 18:51:26 +0000 (18:51 +0000)
app/src/main/res/drawable/side_nav_bar.xml
app/src/main/res/layout/drawer.xml
app/src/main/res/layout/nav_header_latest_transactions.xml

index 6d81870b0b264a03c40208f0322d7d9d991bbbe0..bc183f7db316a81c09bfe2dfcc4e3ae53e13efe6 100644 (file)
@@ -2,8 +2,8 @@
     android:shape="rectangle">
     <gradient
         android:angle="135"
-        android:centerColor="#009688"
-        android:endColor="#00695C"
-        android:startColor="#4DB6AC"
+        android:centerColor="@color/colorPrimary"
+        android:endColor="@color/colorPrimaryDark"
+        android:startColor="#b64db6"
         android:type="linear" />
 </shape>
\ No newline at end of file
index c7114d8b092c22f96b86794444c3baa9eaf2cc59..64ae9e5f30869b6a3e78f671575b3cd5dd5f2f33 100644 (file)
             android:layout_height="wrap_content"
             android:orientation="vertical">
 
-            <LinearLayout
+            <include
+                layout="@layout/nav_header_latest_transactions"
                 android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:background="@color/colorPrimary"
-                android:orientation="vertical">
-
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:orientation="vertical"
-                    android:paddingLeft="16dp">
-
-                    <TextView
-                        android:id="@+id/textView6"
-                        android:layout_width="match_parent"
-                        android:layout_height="wrap_content"
-                        android:paddingTop="32dp"
-                        android:text="@string/app_name"
-                        android:textColor="@android:color/white" />
-
-                    <TextView
-                        android:id="@+id/drawer_version_text"
-                        android:layout_width="match_parent"
-                        android:layout_height="wrap_content"
-                        android:text="v1.1.1"
-                        android:textColor="@android:color/white" />
-                </LinearLayout>
-
-            </LinearLayout>
+                android:layout_height="wrap_content" />
 
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:orientation="vertical"
-                android:paddingLeft="16dp">
+                android:paddingStart="16dp"
+                android:paddingEnd="16dp">
 
                 <TextView
                     android:id="@+id/textView4"
index 4c3439a2ae40330c3c8819d1ed51630339515ae8..a2e296585055efedeab86b7dd4bc2c4235171430 100644 (file)
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:paddingTop="@dimen/nav_header_vertical_spacing"
-        android:text="@string/nav_header_title"
+        android:text="@string/app_name"
         android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
 
     <TextView
-        android:id="@+id/textView"
+        android:id="@+id/drawer_version_text"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="@string/nav_header_subtitle" />