How to style radio button inside alert dialog in android? -


i change text color of radio buttons inside dialog, , other attributes well. how do?

the code used create radio buttons inside dialog:

alertdialog.builder builder = new alertdialog.builder(this);             builder.setsinglechoiceitems(somearray, -1, somelistener); 

i have tried new contextthemewrapper(this, r.style.alertdialogcustom), works on dialog itself, not work on embedded radio buttons(say text color).

alertdialog.builder builder = new alertdialog.builder(new contextthemewrapper(this, r.style.alertdialogcustom));             builder.setsinglechoiceitems(somearray, -1, somelistener); 

r.style.alertdialogcustom example: (tried other attributes well, none works)

<?xml version="1.0" encoding="utf-8"?> <resources> <style name="alertdialogcustom" parent="@android:style/theme.dialog">     <item name="android:textcolor">@color/colorgray</item>     <item name="android:typeface">monospace</item>     <item name="android:textsize">18sp</item>     <item name="android:textcoloralertdialoglistitem">@color/colorgray</item>     <item name="android:radiobuttonstyle">@style/radiobutton</item> </style> </resources> 


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -