diff options
author | Size43 | 2015-06-10 21:09:58 +0200 |
---|---|---|
committer | Size43 | 2015-06-10 21:09:58 +0200 |
commit | 312a226d854fb9922836e80556819b9abd56655f (patch) | |
tree | 2e39b6aa5399a134703bf070ee34a6d6a2c1ee09 /app | |
parent | Cleanup (diff) |
Selected & press color added to hamburger menu
Diffstat (limited to 'app')
-rwxr-xr-x | app/src/main/res/drawable/navigation_drawer_item_selector.xml | 20 | ||||
-rwxr-xr-x | app/src/main/res/drawable/navigation_drawer_separator_selector.xml | 20 | ||||
-rwxr-xr-x[-rw-r--r--] | app/src/main/res/layout/item_navigation_drawer.xml | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | app/src/main/res/layout/separator_navigation_drawer.xml | 2 |
4 files changed, 42 insertions, 2 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..0526dcd --- /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="#555555" />
+ </shape>
+ </item>
+ <item
+ android:state_activated="true">
+ <shape>
+ <solid android:color="#343434" />
+ </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 4c56384..b7e7f22 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: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 99936ab..8b1277c 100644..100755 --- a/app/src/main/res/layout/separator_navigation_drawer.xml +++ b/app/src/main/res/layout/separator_navigation_drawer.xml @@ -24,7 +24,7 @@ android:layout_height="wrap_content" android:layout_alignParentLeft="true"
android:orientation="vertical"
android:layout_marginTop="0dp"
-android:background="#252525"
+android:background="@drawable/navigation_drawer_separator_selector"
>
<RelativeLayout
|