Theme Overlay Material Toolbar #13198
-
If I click the 3 dots in the toolbar the menu-items pop up. And I want to change their text color. But I can't find the correct property platform/android/res/values/myTheme.xml:
Also I can't find property to set the background of the popup menu to transparent. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You really need to update your google-game 🤣 Colored dots: https://stackoverflow.com/a/35933013 It took me more time to create the Titanium code for the menu 😄 Full XML example: <?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="defaultTheme" parent="Theme.MaterialComponents.DayNight">
<item name="android:actionOverflowButtonStyle">@style/MyCustomTheme</item>
<item name="actionOverflowButtonStyle">@style/MyCustomTheme</item>
<item name="actionOverflowMenuStyle">@style/menubackground</item>
<item name="android:itemTextAppearance">@style/TextAppearance</item>
</style>
<style name="MyCustomTheme" parent="@style/Widget.AppCompat.ActionButton.Overflow">
<item name="android:tint">#f00</item>
</style>
<style name="menubackground" parent="Widget.AppCompat.PopupMenu.Overflow">
<item name="android:popupBackground">@android:color/transparent</item>
</style>
<style name="TextAppearance">
<item name="android:textColor">#0ff</item>
</style>
</resources> will show red dots, aqua text in the popup and a transparent popup menu. |
Beta Was this translation helpful? Give feedback.
You really need to update your google-game 🤣
Colored dots: https://stackoverflow.com/a/35933013
Menu background: https://stackoverflow.com/a/28979152
font color: https://stackoverflow.com/a/19212678
It took me more time to create the Titanium code for the menu 😄
Full XML example: