显示:
edit.setTransformationMethod(HideReturnsTransformationMethod.getInstance());隐藏:
edit.setTransformationMethod(PasswordTransformationMethod.getInstance());
本文介绍如何使用HideReturnsTransformationMethod和PasswordTransformationMethod来实现在Android应用中切换EditText的输入显示状态,即在需要时显示明文或隐藏为密码。
显示:
edit.setTransformationMethod(HideReturnsTransformationMethod.getInstance());隐藏:
edit.setTransformationMethod(PasswordTransformationMethod.getInstance());
493

被折叠的 条评论
为什么被折叠?