aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapp/src/main/res/drawable/navigation_drawer_item_selector.xml20
-rwxr-xr-xapp/src/main/res/drawable/navigation_drawer_separator_selector.xml20
-rwxr-xr-x[-rw-r--r--]app/src/main/res/layout/item_navigation_drawer.xml2
-rwxr-xr-x[-rw-r--r--]app/src/main/res/layout/separator_navigation_drawer.xml17
4 files changed, 49 insertions, 10 deletions
diff --git a/app/src/main/res/drawable/navigation_drawer_item_selector.xml b/app/src/main/res/drawable/navigation_drawer_item_selector.xml
new file mode 100755
index 0000000..4672bbb
--- /dev/null
+++ b/app/src/main/res/drawable/navigation_drawer_item_selector.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_pressed="true">
+ <shape>
+ <solid android:color="#757575" />
+ </shape>
+ </item>
+ <item
+ android:state_activated="true">
+ <shape>
+ <solid android:color="#454545" />
+ </shape>
+ </item>
+ <item>
+ <shape>
+ <solid android:color="#121212" />
+ </shape>
+ </item>
+</selector> \ No newline at end of file
diff --git a/app/src/main/res/drawable/navigation_drawer_separator_selector.xml b/app/src/main/res/drawable/navigation_drawer_separator_selector.xml
new file mode 100755
index 0000000..516b1e0
--- /dev/null
+++ b/app/src/main/res/drawable/navigation_drawer_separator_selector.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_pressed="true">
+ <shape>
+ <solid android:color="#555555" />
+ </shape>
+ </item>
+ <item
+ android:state_activated="true">
+ <shape>
+ <solid android:color="#343434" />
+ </shape>
+ </item>
+ <item>
+ <shape>
+ <solid android:color="#252525" />
+ </shape>
+ </item>
+</selector> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_navigation_drawer.xml b/app/src/main/res/layout/item_navigation_drawer.xml
index 86ce8cd..e1e996c 100644..100755
--- a/app/src/main/res/layout/item_navigation_drawer.xml
+++ b/app/src/main/res/layout/item_navigation_drawer.xml
@@ -25,7 +25,7 @@
android:layout_alignParentLeft="true"
android:orientation="vertical"
android:layout_marginTop="0dp"
- android:background="#121212">
+ android:background="@drawable/navigation_drawer_item_selector">
<TextView
android:id="@+id/item_navigation_drawer_text"
diff --git a/app/src/main/res/layout/separator_navigation_drawer.xml b/app/src/main/res/layout/separator_navigation_drawer.xml
index ad8baff..f73c837 100644..100755
--- a/app/src/main/res/layout/separator_navigation_drawer.xml
+++ b/app/src/main/res/layout/separator_navigation_drawer.xml
@@ -17,15 +17,14 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-->
<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/itemLayout"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:orientation="vertical"
- android:layout_marginTop="0dp">
-
+xmlns:android="http://schemas.android.com/apk/res/android"
+android:id="@+id/itemLayout"
+android:layout_width="fill_parent"
+android:layout_height="wrap_content"
+android:layout_alignParentLeft="true"
+android:layout_alignParentStart="true"
+android:orientation="vertical"
+android:layout_marginTop="0dp">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"