android - 小米便签打钩后有横线是怎么实现的??
高洛峰
高洛峰 2017-04-17 16:26:09
0
4
715
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(4)
迷茫

You can set strikethrough through Paint textView.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
If you select a section of text to set strikethrough, use Span to draw it in blocks.

Peter_Zhu

It should be implemented by custom control

小葫芦

Customize TextView, override onDraw method, execute canvas.drawLine to draw lines when checked, and refresh TextView again

迷茫

Framelayout, make that line Invisable, click to check it and make it visible. Personal opinion...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template