TextView Extensions

Set Under Line to TextView
fun TextView.setUnderLine() {
    SpannableString(text).apply { 
        setSpan(UnderlineSpan(), 0, text.length, 0)
    }.also { 
        text = it
    }
}
Kotlin
fun TextView.setStrikeLine() {
    paintFlags = paintFlags or Paint.STRIKE_THRU_TEXT_FLAG
}