To draw an Underline below the TextView in Android
There are three ways of underling the text in TextView. SpannableString setPaintFlags(); of TextView Html.fromHtml(); Let me explain you all approaches : 1st Approach For underling the text in TextView you have to use SpannableString String udata=”Underlined Text”; SpannableString content = new SpannableString(udata); content.setSpan(new UnderlineSpan(), 0, udata.length(), 0); mTextView.setText(content); 2nd Approach You can make use … Read more