use rounded corners at the top menu
This commit is contained in:
parent
9c6dda3926
commit
75f0bb09a3
3 changed files with 29 additions and 3 deletions
9
commons/src/main/res/drawable/top_popup_menu_bg_dark.xml
Normal file
9
commons/src/main/res/drawable/top_popup_menu_bg_dark.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/default_background_color" />
|
||||
<corners android:radius="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/md_grey_white" />
|
||||
<corners android:radius="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
|
@ -9,7 +9,7 @@
|
|||
<item name="android:spinnerDropDownItemStyle">@style/SpinnerItem.DropDownItem</item>
|
||||
<item name="buttonStyle">@style/MyTransparentButton</item>
|
||||
<item name="android:buttonStyle">@style/MyTransparentButton</item>
|
||||
<item name="android:itemBackground">@color/default_background_color</item>
|
||||
<item name="actionOverflowMenuStyle">@style/TopPopupMenu.Overflow.Dark</item>
|
||||
<item name="android:textColor">@color/default_text_color</item>
|
||||
<item name="android:colorControlHighlight">@color/activated_item_foreground</item>
|
||||
<item name="colorControlHighlight">@color/activated_item_foreground</item>
|
||||
|
@ -129,6 +129,14 @@
|
|||
<item name="android:textColorHint">@color/hint_black</item>
|
||||
</style>
|
||||
|
||||
<style name="TopPopupMenu.Overflow.Light" parent="@style/Widget.MaterialComponents.PopupMenu.Overflow">
|
||||
<item name="android:popupBackground">@drawable/top_popup_menu_bg_light</item>
|
||||
</style>
|
||||
|
||||
<style name="TopPopupMenu.Overflow.Dark" parent="@style/Widget.MaterialComponents.PopupMenu.Overflow">
|
||||
<item name="android:popupBackground">@drawable/top_popup_menu_bg_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="BottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog">
|
||||
<item name="bottomSheetStyle">@style/BottomSheetModalStyle</item>
|
||||
<item name="android:colorControlHighlight">@color/activated_item_foreground</item>
|
||||
|
@ -191,7 +199,7 @@
|
|||
<item name="actionBarTheme">@style/DarkActionBarItems</item>
|
||||
<item name="android:windowLightStatusBar">true</item>
|
||||
<item name="android:textColorPrimary">@color/theme_dark_background_color</item>
|
||||
<item name="android:itemBackground">@color/md_grey_white</item>
|
||||
<item name="actionOverflowMenuStyle">@style/TopPopupMenu.Overflow.Light</item>
|
||||
<item name="android:itemTextAppearance">@style/AppTheme.White.TextStyle</item>
|
||||
<item name="android:colorControlHighlight">@color/activated_item_foreground</item>
|
||||
<item name="colorControlHighlight">@color/activated_item_foreground</item>
|
||||
|
@ -220,7 +228,7 @@
|
|||
<item name="actionBarTheme">@style/LightActionBarItems</item>
|
||||
<item name="android:windowLightStatusBar">false</item>
|
||||
<item name="android:textColorPrimary">@color/theme_light_background_color</item>
|
||||
<item name="android:itemBackground">@color/md_grey_black</item>
|
||||
<item name="actionOverflowMenuStyle">@style/TopPopupMenu.Overflow.Dark</item>
|
||||
<item name="android:itemTextAppearance">@style/AppTheme.BlackAndWhite.TextStyle</item>
|
||||
<item name="android:colorControlHighlight">@color/activated_item_foreground</item>
|
||||
<item name="colorControlHighlight">@color/activated_item_foreground</item>
|
||||
|
|
Loading…
Reference in a new issue