You can use the method setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) from the TextView to set the left, right, top, bottom drawables to the TextView. For the underlined effect u can use a line as a image and set setCompoundDrawables(null,null, null, line);
On 17 Mrz., 10:19, "Mr.No" <[email protected]> wrote: > Nobody knows how to set the text in a TextView underlinded within the > code? > > On 16 Mrz., 12:11, "Mr.No" <[email protected]> wrote: > > > Thx, but its static, i wonna also change the text within the code. > > > On 16 Mrz., 11:59, manoj <[email protected]> wrote: > > > > Define a string value in strings.xml as suggested below. > > > <string name="Your_text"><u>My Booking</u></string> > > > > On Mar 16, 3:38 pm, "Mr.No" <[email protected]> wrote: > > > > > Hello, > > > > how i can set the Text in a TextView underlined within the xml? > > > > > rgds mr.no --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

