Requirements: Add the following line of text is underlined
codes:
login_register.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
login_register.getPaint().setAntiAlias(true);//抗锯齿
Huawei cell phone to see is this:
Silent now, how to change it useless, but unfortunately this is it:
SpannableString spannableString = new SpannableString("立即注册>");
UnderlineSpan underlineSpan = new UnderlineSpan();
spannableString.setSpan(underlineSpan, 0, spannableString.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
login_register.setText(spannableString);
Who knows the reason Guestbook Thanks
Reproduced in: https: //www.jianshu.com/p/2c74543a1fc9