Here is an extension for all you Kotlin folks
fun TextView.showStrikeThrough(show: Boolean) {
paintFlags =
if (show) paintFlags or Paint.STRIKE_THRU_TEXT_FLAG
else paintFlags and Paint.STRIKE_THRU_TEXT_FLAG.inv()
}
Usage
textView.showStrikeThrough(true)
Limitation
Strikethroughs can only be the same color as the text
(i.e. Red text and blue strikethrough is not possible)