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" <f.hi...@arcor.de> wrote: > Nobody knows how to set the text in a TextView underlinded within the > code? > > On 16 Mrz., 12:11, "Mr.No" <f.hi...@arcor.de> wrote: > > > Thx, but its static, i wonna also change the text within the code. > > > On 16 Mrz., 11:59, manoj <manojkumar.m...@gmail.com> 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" <f.hi...@arcor.de> 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 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 -~----------~----~----~----~------~----~------~--~---