I want to set text in Edit box as Underline , so that when user types anything in Edit text box, it appears as Underlined.
For instance when i setTextSize(26); , when user types anything it shows text in size =26. Now i want to achieve the same thing for Underlining.
Joined: Mar 29, 2011
You need an object of type Editable, this object will store the text that the user typed and also need an objecto of type StyleSpan. The StyleSpan class allow you use different styles over your EditText component, here a very small example: