[android-developers] Re: Highlight part of the text in a textview object

2010-04-19 Thread patbenatar
You could TRY your red highlighted text On Apr 19, 12:43 pm, sebastian23 wrote: > the problem is that your solution is only for the font color, but i want to > set the font background :( > > -- > You received this message because you are subscribed to the Google > Groups "Android Developer

Re: [android-developers] Re: Highlight part of the text in a textview object

2010-04-19 Thread social hub
You can try the html way to styling This used to work for me. string =" hello " textview.setText(Html.fromHtml(string)) On Sun, Apr 18, 2010 at 1:17 AM, patbenatar wrote: > Sorry, bolding and italicizing is the extent of my text formatting > knowledge with Android. > > Anyone else know more

[android-developers] Re: Highlight part of the text in a textview object

2010-04-17 Thread patbenatar
Sorry, bolding and italicizing is the extent of my text formatting knowledge with Android. Anyone else know more about this? On Apr 17, 5:33 am, Sebastian Müller wrote: > Thanks a lot for your answer. This works great for the Bold thing, but > background isnt changing...do you know why?? >

[android-developers] Re: Highlight part of the text in a textview object

2010-04-17 Thread patbenatar
Here is the more difficult, lower-level way to do this (probably also has more functionality): http://developer.android.com/reference/android/text/Spannable.html Here is the much easier way to do this: http://developer.android.com/reference/android/text/Html.html ... This one is REALLY nice. You