]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drawer: colour divider above the settings/exit buttons
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 29 Nov 2018 18:51:02 +0000 (18:51 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 29 Nov 2018 18:51:02 +0000 (18:51 +0000)
app/src/main/res/drawable/list_divider.xml [new file with mode: 0644]
app/src/main/res/layout/drawer.xml

diff --git a/app/src/main/res/drawable/list_divider.xml b/app/src/main/res/drawable/list_divider.xml
new file mode 100644 (file)
index 0000000..2269c70
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <gradient
+        android:color="@color/divider"
+        android:type="linear"
+        android:startColor="@android:color/white"
+        android:centerColor="@color/colorPrimary"
+        android:endColor="@android:color/white"/>
+    <size android:height="2dp" />
+</shape>
\ No newline at end of file
index a02c45b0f3abc2f69c5dd25ca09abf92d3eb7907..c7114d8b092c22f96b86794444c3baa9eaf2cc59 100644 (file)
         android:layout_alignParentEnd="true"
         android:layout_alignParentBottom="true"
         android:layout_marginEnd="0dp"
+        android:divider="@drawable/list_divider"
+        android:elevation="2dp"
         android:orientation="vertical"
-        android:paddingLeft="16dp">
+        android:paddingStart="16dp"
+        android:paddingEnd="16dp"
+        android:showDividers="beginning">
 
         <TextView
             android:id="@+id/textView2"