Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/drawable-v21/bg_navdrawer_item.xml')
-rw-r--r--app/src/main/res/drawable-v21/bg_navdrawer_item.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/src/main/res/drawable-v21/bg_navdrawer_item.xml b/app/src/main/res/drawable-v21/bg_navdrawer_item.xml
new file mode 100644
index 00000000..438be114
--- /dev/null
+++ b/app/src/main/res/drawable-v21/bg_navdrawer_item.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="?colorControlHighlight">
+
+ <item
+ android:id="@android:id/mask"
+ android:left="@dimen/spacer_1x"
+ android:right="@dimen/spacer_1x"
+ android:top="@dimen/spacer_1hx"
+ android:bottom="@dimen/spacer_1hx">
+
+ <shape android:shape="rectangle">
+ <!-- value of color is irrelevant, but solid needs to be defined for mask to work -->
+ <solid android:color="@color/bg_highlighted" />
+ <corners android:radius="@dimen/spacer_1hx" />
+ </shape>
+ </item>
+
+ <item
+ android:left="@dimen/spacer_1x"
+ android:right="@dimen/spacer_1x"
+ android:top="@dimen/spacer_1hx"
+ android:bottom="@dimen/spacer_1hx">
+
+ <selector>
+ <item android:state_selected="true">
+ <shape android:shape="rectangle">
+ <corners android:radius="@dimen/spacer_1hx" />
+ <solid android:color="@color/bg_highlighted" />
+ </shape>
+ </item>
+
+ <item>
+ <shape android:shape="rectangle">
+ <corners android:radius="@dimen/spacer_1hx" />
+ </shape>
+ </item>
+ </selector>
+ </item>
+
+</ripple> \ No newline at end of file