以编程的方式添给 TextView 添加删除线:
textview.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
顺便研究下:
TextView.getPaint() :
// Returns the base paint used for the text.
// Please use this only to consult the Paint's properties and not to change them.
public TextPaint getPaint();
TextPaint:
// TextPaint is an extension of Paint that leaves room
// for some extra data used during text measuring and drawing.
public class TextPaint extends Paint {...}
Paint:
// The Paint class holds the style and color information
// about how to draw geometries, text and bitmaps.
public class Paint extends Object {...}
Paint.setFlags():
// Set the paint's flags. Use the Flag enum to specific flag values.
// f