Android TextView Strike

To make a strike in your TextView in Android use the setPaintFlags like this:

TextView tv=(TextView) v.findViewById(;
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);

If you’re using Html.fromHtml to set the text you can’t unfortunately use the <strike> as this is not supported for Android at this moment (in Jelly Bean).

Posted in Android, Tips and Tricks Tagged with: , ,