Tuesday, October 18, 2011

How to draw a line through a TextView

TextView tvSubject = new TextView(context);
tvSubject.setText("Text");
tvSubject.setPaintFlags(tvSubject.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG );
Now there is a line through the text.

No comments:

Post a Comment