I want to customize all dialogs, alertDialogs and spinner. I want to change the color of text and the background of the title bar.
I try to explain better: I want the text (JOLLY BAR DI ...) to be white and the background of the title (from the top of the dialog to the soft-blue line below the title included) to be blue (#044592).
How can I do it?
Ok, I've almost solved the problem (I'm answering my own question because it may help others with the same problem as mine). The problem remains for spinners, DatePickers etc.
For the AlertDialogs I do something like this:
dialog_custom_titile.xml :
for the Activities that I want to look like Dialogs I do like this: I declare them in the Manifest.xml as follows:
then, in the res/values/styles.xml file I do like this:
I still get the light blue divider between the title and the body... still working on it. As already said, I still don't know how to deal with Spinners, DatePicker, etc...
That's the result: AlertDialog:
And an Activity with the look of a dialog: