diff options
Diffstat (limited to 'app/src/main/res/drawable/bg_navdrawer_item.xml')
-rw-r--r-- | app/src/main/res/drawable/bg_navdrawer_item.xml | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/app/src/main/res/drawable/bg_navdrawer_item.xml b/app/src/main/res/drawable/bg_navdrawer_item.xml index 39e2c2f47..0cdc61323 100644 --- a/app/src/main/res/drawable/bg_navdrawer_item.xml +++ b/app/src/main/res/drawable/bg_navdrawer_item.xml @@ -1,14 +1,37 @@ <?xml version="1.0" encoding="utf-8"?> -<selector xmlns:android="http://schemas.android.com/apk/res/android" android:left="@dimen/spacer_1x" android:right="@dimen/spacer_1x"> +<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"> - <item android:state_checked="true"> <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> - <shape android:shape="rectangle" /> + <item + android:left="@dimen/spacer_1x" + android:right="@dimen/spacer_1x"> + + <selector> + <item android:state_checked="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> -</selector>
\ No newline at end of file +</ripple>
\ No newline at end of file |