]> git.ktnx.net Git - mobile-ledger.git/commitdiff
left pad, colour the head
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 27 Nov 2018 20:57:33 +0000 (20:57 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 27 Nov 2018 20:57:33 +0000 (20:57 +0000)
app/src/main/res/layout/drawer.xml

index 92bac44ddff9b77cb14a05c46f3255b488052400..b8f069ff2a8493f8bdb7fe6fac3f4d59299d44fb 100644 (file)
@@ -3,13 +3,77 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent">
 
+    <ScrollView
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:layout_alignParentStart="true"
+        android:layout_alignParentTop="true">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:orientation="vertical">
+
+            <LinearLayout
+                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>
+
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:orientation="vertical"
+                android:paddingLeft="16dp">
+
+                <TextView
+                    android:id="@+id/textView4"
+                    style="@style/nav_button"
+                    android:drawableStart="@drawable/ic_home_black_24dp"
+                    android:text="@string/nav_latest_transactions_title" />
+
+                <TextView
+                    android:id="@+id/textView5"
+                    style="@style/nav_button"
+                    android:drawableStart="@drawable/ic_assignment_black_24dp"
+                    android:text="@string/nav_reports_title" />
+            </LinearLayout>
+
+        </LinearLayout>
+    </ScrollView>
+
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="96dp"
         android:layout_alignParentEnd="true"
         android:layout_alignParentBottom="true"
         android:layout_marginEnd="0dp"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        android:paddingLeft="16dp">
 
         <TextView
             android:id="@+id/textView2"
 
     </LinearLayout>
 
-    <ScrollView
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:layout_alignParentStart="true"
-        android:layout_alignParentTop="true">
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="vertical">
-
-            <TextView
-                android:id="@+id/textView4"
-                style="@style/nav_button"
-                android:drawableStart="@drawable/ic_home_black_24dp"
-                android:text="@string/nav_latest_transactions_title" />
-
-            <TextView
-                android:id="@+id/textView5"
-                style="@style/nav_button"
-                android:drawableStart="@drawable/ic_assignment_black_24dp"
-                android:text="@string/nav_reports_title" />
-        </LinearLayout>
-    </ScrollView>
-
 </RelativeLayout>