我正在使用下面的这一行,以便在我的TextView上设置删除线:
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
然而,稍后在片段中,如果他们再次单击TextView,我希望删除删除线.我可以使用哪一行代码来简单地让TextView再次显示正常格式的文本?
提前致谢!
flags android textview strikethrough android-listview
android ×1
android-listview ×1
flags ×1
strikethrough ×1
textview ×1