Actually, for the AlertDialog's buttons I only needed to use Html.fromHtml( "<b>Yes</b>") to format as bold... no CDATA required.
On Tuesday, December 17, 2013 8:41:31 AM UTC-8, LackeySoft wrote: > > Your line setMessage( Html.fromHtml( ) ) works for me if I define the > string as a resource wrapping it with CDATA like so: > > <string name="you_have_not_made_changes">*<![CDATA[*You have not made > changes to this <b>NEW DOCUMENT</b>*]]>*</string> > > This also works with the AlertDialog's buttons. > > On Sunday, December 15, 2013 11:04:32 PM UTC-8, rahul kaushik wrote: >> >> How to set part of text to bold when using AlertDialog.setMessage . >> >> I googled and also tried >> Html.fromHtml("<b>"+getString(R.string.your_message)+"</b>") >> >> but no Help! >> >> Please Suggest >> >> Thanks >> RK >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.