what about remove underline?
TextView theTextView = new TextView(this);
theTextView.setText(Html.fromHtml("<u>Text to underline</u>"));
Here is the simplest way
i don't know if somebody is still interested in this topic, but i disovered that
textview.setTypeface(Typeface.NORMAL); did not work for me. My solution was this snippet textView.setPaintFlags(0);
TextView myTextView = new TextView(this);
SpannableString mySpannableString = new SpannableString("My String");
mySpannableString.setSpan(new UnderlineSpan(), 0, mySpannableString.length(), 0);
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
Contact to your favourite celebrities now like Shahnaz Gill, Mayur Verma, Shahbaz Badisha and many more.