为什么Android中的密码字段先显示字符然后被屏蔽?
当我在应用程序的密码字段中输入密码时,t 首先显示字符,然后更改。我的系统配置较少,我有 1GB RAM 和双核处理器 - 这就是我看到这个角色的原因吗?是否有其他字段可供选择以获取像其他登录页面一样的信息。
While am entering the password in my application in the password field, t first shows the character and then change. My system configuration is less, I have 1GB Ram and dual core processor - Is that is the reason am seeing the character? Is there other field to be choosen to get like other login pages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是一个错误。密码字段的行为是为了确保您输入正确的字符。设备也一样。
This is not a error. It is behaviour of the password field to ensure you are entering correct characters. Its same for device also.
可能类似帖子
实际上这个不是一个错误。当您在密码字段中输入密码(例如登录任何聊天应用程序或任何网站)时,您也会在设备中遇到此问题。
此字段的行为是为了确保用户输入正确的字符。
可以通过实现您自己的 TransformationMethod 并通过 setTransformationMethod() 设置它来更改此行为,但我不建议这样做。用户会期望您所看到的行为,并且通过更改您的应用程序,您将提供不一致的用户体验。
关于此的 Android 参考手册< /a>
May be similar post
Actually this not an error. You also face this into the device also when you type your password in the password field like login into any chat app or any web site.
This the behavior of this field to ensure the user that he type the correct character
It is possible to change this behavior by implementing your own TransformationMethod and setting it via setTransformationMethod(), but I would not recommend doing that. Users will expect the behavior you are seeing and by changing your app, you'll be providing an inconsistent user experience.
Android Reference Manual on this