Android TextView(EditView)文字底部或者中间 加横线
tv = (TextView) this .findViewById(R.id. text_view );
中间加横线
tv.getPaint().setFlags(Paint. STRIKE_THRU_TEXT_FLAG );
底部加横线:
tv .getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG );
时间: 2024-10-12 12:06:20
tv = (TextView) this .findViewById(R.id. text_view );
中间加横线
tv.getPaint().setFlags(Paint. STRIKE_THRU_TEXT_FLAG );
底部加横线:
tv .getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG );