Tip : Underlining text in TextView
As we all know there is a property called android:textStyle to set text as Bold and Italic. But it doesn’t have any value like underline. What if we want underlined text in android?
String data="Underlined Text";
SpannableString content = new SpannableString(data);
content.setSpan(new UnderlineSpan(), 0, data.length(), 0);