How to set underline text on textview?
I have used following code but it is not working.
tvHide.setText(Html.fromHtml("
You can easily add a View with the height of 1dp aligning start and the end of TextView, right below it. You can also use marginTop with negative value to make the underline closer to TextView. If you use your TextView and the under inside a relative layout, it would be much easier for alignments. here is the example: