On Mon, Apr 13, 2009 at 8:02 PM, Kaka <[email protected]> wrote: > > Then, how to implement this in code?
The "rich text" object in Android is called a Spannable: http://developer.android.com/reference/android/text/Spannable.html You can give this to TextView.setText(). Also check the BufferType that you can give to a TextView: http://developer.android.com/reference/android/widget/TextView.html#setText(java.lang.CharSequence,%20android.widget.TextView.BufferType) R/ > > On Mar 23, 9:10 pm, manoj <[email protected]> wrote: >> define a String item in Strings.xml as: >> >> <string name="your_txt"><u>txt to be displayed</u></string> >> >> use this in your layout. >> >> On Mar 23, 4:55 pm, aby <[email protected]> wrote: >> >> > Hi, >> > Does anyone know how to set underline attribute on a TextView? >> > I just see it can set bold and italic on TextView. >> >> > Thanks >> >> > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

