I want to draw the underline below my TextView. I have searched a few content but couldn't find out anything fruitful.
Can anyone please help me out here?
I want to draw the underline below my TextView. I have searched a few content but couldn't find out anything fruitful.
Can anyone please help me out here?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravi RupareliyaPosted Jun 7, 2016, 8:40 AM
1st approach
2nd Approach
3rd Approach
Hardik MahantPosted Jun 3, 2016, 8:16 AM
In android there is no any parameter or a property for set a underline on textview.
So,I suggest make a view with a background color(color which you want as underline color), height as 1dp & adjust a width as per your textview,adjust it below of textview this is a simplest way to get an underline with TextView.
Otherwise you can get underline like this