diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-10-18 09:47:31 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2021-10-18 09:47:31 +0300 |
commit | 5b524bc0e28a0afde1a741f32687c065df0e72fc (patch) | |
tree | ad952207d0ef6b60629240cdcf72f08e5a36cf9d /app/src/main/res/drawable/bg_navdrawer_item.xml | |
parent | f9ef4482a4a6638d54bbac830cf72cee032e408f (diff) |
Adjust widget styling for Android S
Signed-off-by: Stefan Niedermann <info@niedermann.it>
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 |