To draw an Underline below the TextView in Android

后端 未结 8 889
孤街浪徒
孤街浪徒 2020-11-29 16:39

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 he

8条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 16:56

    just surround your text with < u > tag in your string.xml resource file

    Underlined text
    

    and in your Activity/Fragment

    mTextView.setText(R.string.your_string);
    

提交回复
热议问题