美文网首页
在Edittext设置inputType="textPasswo

在Edittext设置inputType="textPasswo

作者: hao_developer | 来源:发表于2020-01-13 17:50 被阅读0次

中文貌似没差。但是在英文时就会出现以下的情况:


image.png

我们发现,输入手机框和密码框中的hint字体完全不一样,密码框中更像是全角字体。解决方法就是:

添加:

mPassword.setTypeface(Typeface.DEFAULT);

相关文章

网友评论

      本文标题:在Edittext设置inputType="textPasswo

      本文链接:https://www.haomeiwen.com/subject/egdnactx.html