[android-developers] Re: part of text to bold when using AlertDialog.setMessage .
Pass a custom view to AlertDialog with that view containing a TextView with the Spanned being returned from Html.fromtHtml. Don't use the AlertDialog's setMessage since that only accepts regular strings and not Spanned strings with markup.
Doug
On Sunday, December 15, 2013 11:04:32 PM UTC-8, rahul kaushik wrote:
-- Doug
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 SuggestThanksRK
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home