How do you underline a text in an XML file? I can\'t find an option in textStyle.
textStyle
I used below method, it worked for me. Below is example for Button but we can use in TextView as well.
Button btnClickMe = (Button) findViewById(R.id.btn_click_me); btnClickMe.setPaintFlags(btnClickMe.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);