I want to show text in dark color on a light background on alert dialog. But I can't figure out how to do this. Please help me.
Thanks.
I want to show text in dark color on a light background on alert dialog. But I can't figure out how to do this. Please help me.
Thanks.
You can create your own layout in an XML View just like you would for an Activity:
Then you can use this View in the Dialog by calling
setContentView(View)
on the Dialog:As the example shows, you'll have to set some of the values after you declare the content view.
Example provided from http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
see this example,It will help you:http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application
as in this example layout defined in file for alert dialog.You can set your style for alert dialog.