Textview double underscore Huawei cell phone

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:


8049545-8599732c6852d190.png
image.png

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

Guess you like

Origin blog.csdn.net/weixin_34037515/article/details/91180429