转自http://bbs.189works.com/thread-26378-1-1.html
promotionLinkText = (TextView) this .findViewById(R.id. text_promotion_link );
中间加横线
promotionLinkText .getPaint().setFlags(Paint. STRIKE_THRU_TEXT_FLAG );
底部加横线:
promotionLinkText .getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG );
本文介绍了如何使用 Android 中的 TextView 对文本进行格式化操作,包括为文本添加中间横线(strike-through)和底部下划线(underline)。通过设置 Paint 对象的 flags 属性来实现这些效果。
2002

被折叠的 条评论
为什么被折叠?



