安卓隐藏密码,密码变小圆点

2018-03-22  本文已影响0人  andy_tu

final ClearEditText newPwdTextGropuSure = new ClearEditText(this); newPwdTextGropuSure.setHint(R.string.more_input_new_pwd_sure); newPwdTextGropuSure.setPadding(10, 10, 10, 10); newPwdTextGropuSure.setSingleLine(true); newPwdTextGropuSure.setBackgroundColor(Color.WHITE); newPwdTextGropuSure.setFilters(new InputFilter[]{new InputFilter.LengthFilter(Define.DEVICE_NAEM_LENGTH)}); final EditText passwordText1 = newPwdTextGropuSure; passwordText1.setTransformationMethod(PasswordTransformationMethod.getInstance()); passwordText1.setTypeface(Typeface.SANS_SERIF);

上一篇下一篇

猜你喜欢

热点阅读