Android TextView(EditView)文字底部或者中间 加横线

 

promotionLinkText = (TextView) this .findViewById(R.id. text_promotion_link );
中间加横线
 promotionLinkText .getPaint().setFlags(Paint. STRIKE_THRU_TEXT_FLAG );
底部加横线:
promotionLinkText .getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG );

 

原文地址:https://www.cnblogs.com/tt_mc/p/1836753.html