How do I adjust Spinner dialog style?
All I want to do is to change the background, either to drawable or a color.
If you want change the spinner's popup background, you can use : setPopupBackgroundResource()
For change background of the spinner (not the popup), this tutorial are good -> link
Related
Hi I want to change the background color of Android spinner prompt or title, not the background color of Spinner List item.
So far I have not yet found any effective way to do it.
Thanks.
If I just need to change the Spinner popup Title bar background, what should I do? The only way is to make a customize spinner?
Yes, you have to create a custom spinner. The following link may help you to create it. change the spinner title bar style
I want to implement the below:
A spinner which would have a custom layout, its background color would be black and font would be white. But what I want is that when I select any component then my selection background and font color should reverted back to its defaults (in terms of color).
#Rao use custom Spinner and for colour state change use Color State list
How to change spinner's dialog style ? I need to change background color from white.
Did you read the Android docs? If you go to http://developer.android.com/reference/android/widget/Spinner.html and do a CTRL+F search for color you should find what you are looking for
I would like to modify the background of the title bar of the dropdown dialog associated to a spinner.
If this is not possible I would like to know what resource is used to draw this background android.R.drawable.* ?
This is an effort of uniformity for my various pop ups in my application.
You can change everything using styles and themes.
Take a look at this example for buttons:
http://blog.androgames.net/40/custom-button-style-and-theme/