Let's say I had this:
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())
.setMessage("I want THIS word to be bold and the rest normal!")
.create().show();
Is there any way to have Android apply formatting or bold font to parts of the text string?
Using Spannable string is easy way
In your string.xml add
In your alert dialog
You must use custom dialogs . Default Android dialogs don't have any option to do this .
For more info refer to : Custom Dialog Android
You can add a string to your strings.xml like this:
and then in your alert dialog just use
setMessage(R.string.bold_message)