diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-12-21 22:57:42 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-12-22 00:17:24 +0300 |
commit | 59e1019ffdb351da8afbc094d2cd44439b169e83 (patch) | |
tree | d1b459cd19dd813ca414864ecde7a9b3abdebf56 /app/src/main | |
parent | c66a96fffff939a0f5dbedb7eda8f7967a079ff9 (diff) |
#769 use state_checked and set colorControlHighlight to transparent
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/res/drawable-v21/bg_navdrawer_item.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/drawable/bg_navdrawer_item.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/values-v21/styles.xml | 7 |
3 files changed, 9 insertions, 2 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 index a366c0d23..0cdc61323 100644 --- a/app/src/main/res/drawable-v21/bg_navdrawer_item.xml +++ b/app/src/main/res/drawable-v21/bg_navdrawer_item.xml @@ -19,7 +19,7 @@ android:right="@dimen/spacer_1x"> <selector> - <item android:state_selected="true"> + <item android:state_checked="true"> <shape android:shape="rectangle"> <corners android:radius="@dimen/spacer_1hx" /> <solid android:color="@color/bg_highlighted" /> diff --git a/app/src/main/res/drawable/bg_navdrawer_item.xml b/app/src/main/res/drawable/bg_navdrawer_item.xml index b12a86343..39e2c2f47 100644 --- a/app/src/main/res/drawable/bg_navdrawer_item.xml +++ b/app/src/main/res/drawable/bg_navdrawer_item.xml @@ -1,7 +1,7 @@ <?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"> - <item android:state_selected="true"> + <item android:state_checked="true"> <shape android:shape="rectangle"> <solid android:color="@color/bg_highlighted" /> </shape> diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml index 61e9c4157..cf823512c 100644 --- a/app/src/main/res/values-v21/styles.xml +++ b/app/src/main/res/values-v21/styles.xml @@ -6,4 +6,11 @@ <item name="android:navigationBarColor">@color/primary</item> <item name="android:statusBarColor">@android:color/transparent</item> </style> + + <style name="NavigationView"> + <!-- https://github.com/stefan-niedermann/nextcloud-deck/issues/444 --> + <item name="android:ellipsize">end</item> + <item name="android:listDivider">@null</item> + <item name="android:colorControlHighlight">@android:color/transparent</item> + </style> </resources>
\ No newline at end of file |