Change Background, Textcolor Of Alertdialog
I try to change background and textcolor of AlertDialog. But I can change only color of title with android:windowTitleStyle Activity: AlertDialog.Builder adb = new AlertDialog
Solution 1:
adb.setMessage(Html.fromHtml("<fontcolor='#FF0000'><b>John:</b></font>"+"How are you?"))
this is for changing text color You can create you own dialog box check this link http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application
Solution 2:
Solution 3:
try this:
<?xml version="1.0" encoding="utf-8"?><resources><stylename="AlertDialogCustom"parent="@android:style/AlertDialog"><itemname="android:textColor">#00FF00</item><itemname="android:background">#0000FF</item><itemname="android:typeface">monospace</item><itemname="android:textSize">10sp</item></style></resources>
Post a Comment for "Change Background, Textcolor Of Alertdialog"