Is it possible to change the background color of items of Dropdown component? #844
-
I'm developing a .NET MAUI project for Android. It's possible to change the background color of the placeholder, of the text of the placeholder. But is it possible for the background of the dropdown list itself? I mean in XAML code of the page. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That is a tough question to answer. Here how it works: It creates a This popupmenu inherits style from default Material theme of the android SDK, and I couldn't find any property to set it separately. It may be configured for entire application easily: But not sure about theming menus separately for each instance You can create a style.xml file under your |
Beta Was this translation helpful? Give feedback.
Thank you very much! It helped!) Here's the solution:
In Platforms/Android/Resources/values/colors.xml we override the default styles:
The important thing is the inheritance from Maui.SplashTheme.
Then in Platforms/Android/MainActivity.cs we apply our styles:
But it removes the border around…