Android EditText 密码输入框可见性设置
来源:互联网 发布:先导爱知在第五季出现 编辑:程序博客网 时间:2024/04/27 17:02
网上有说通过setPassword()方法设置,但我试有这个方法,开始有,一会又找不到这个方法了。很怪异。
还是网络强大,有人贴出了切实可行的办法,在CheckBox 控件的状态改变监听器中实现对EditText控件的密码输入框可见性设置:
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) {
passEdit.setInputType(0x90);
} else {
passEdit.setInputType(0x81);
}
}
效果图:
- Android EditText 密码输入框可见性设置
- Android EditText 密码输入框可见性设置。
- Android EditText 密码输入框可见性设置
- android edittext 输入密码可见
- Android EditText 输入密码是否可见
- EditText为密码输入设置为可见的实现
- Android EditText 设置密码可见性(查看密码按钮的实现)
- 【android】password密码框密码可见性设置
- EditText 在设置为输入密码的时候 密码是否可见 光标在最后显示
- 安卓EditText--输入框输入内容设置可见和不可见
- Android 密码输入 EditText
- android EditText 输入密码
- Android EditText 设置密码输入,不预览最后输入字段
- EditText设置密码可见不可见的方式
- 控制密码输入框可见不可见
- Android EditText里的密码显示可见与不可见
- 自定义Android Dialog EditText 密码输入框
- Android控制密码输入框的密码可见与不可见
- Android获取天气预报的两种方式(国家气象局和中央气象台天气预报API)
- Ray Ban Sunglasses shine your summer 2013. The cheapest Predator 2 shades online sale now
- 蓝牙耳机简单的流程分析
- Proper use of AsyncTask
- (java.lang.NoClassDefFoundError: ) Unable to resolve superclass of Lcom
- Android EditText 密码输入框可见性设置
- android断点下载问题
- Linux 软件看门狗 watchdog
- linux下测试磁盘的读写IO速度
- 详解Eclipse断点
- Windbg实用手册
- 动态页面也能短期被收录
- 下一盘大棋 淘宝旅行5000万补贴背后的“阴谋”
- Objective-C 基础语法详解