I want to draw the underline below my TextView. I have searched a few content but couldn\'t find out anything fruitful.
TextView
Can anyone please help me out he
You can use Kotlin Extension and type your own drawUnderLine method.
drawUnderLine
fun TextView.drawUnderLine() { val text = SpannableString(this.text.toString()) text.setSpan(UnderlineSpan(), 0, text.length, 0) this.text = text }
yourTextView.drawUnderLine()