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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.