[android-developers] Re: part of text to bold when using AlertDialog.setMessage .
Actually, for the AlertDialog's buttons I only needed to use Html.fromHtml( "Yes") 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: > > ** > > 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(""+getString(R.string.your_message)+"") >> >> 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.
[android-developers] Re: part of text to bold when using AlertDialog.setMessage .
Your line setMessage( Html.fromHtml( ) ) works for me if I define the string as a resource wrapping it with CDATA like so: ** 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(""+getString(R.string.your_message)+"") > > 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.
[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: > > How to set part of text to bold when using AlertDialog.setMessage . > > I googled and also tried > Html.fromHtml(""+getString(R.string.your_message)+"") > > 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.
[android-developers] Re: part of text to bold when using AlertDialog.setMessage
i have googled and tried Html.fromHtml(""+getString(R.string.your_message )+"") Tx On Mon, Dec 16, 2013 at 12:24 PM, Rahul Kaushik wrote: > How to set part of text to bold when using AlertDialog.setMessage > > 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.