if (!passwordShop) { //显示密码 edt_import_account_pw.setTransformationMethod(HideReturnsTransformationMethod.getInstance()); passwordShop = true; } else { //隐藏密码 edt_import_account_pw.setTransformationMethod(PasswordTransformationMethod.getInstance()); passwordShop = false; }
edittext的密码显示与隐藏
最新推荐文章于 2023-05-13 14:48:05 发布