EditText password = (EditText) findViewById(R.id.register_password_text);password.setTypeface(Typeface.DEFAULT);password.setTransformationMethod(new PasswordTransformationMethod());
此外需要去除xml中的 android:password="true"语句
来源于 stackoverflow

更多相关文章

  1. android switch语句case expressions must be constant expressi
  2. android View根据自己获取焦点的情况执行语句
  3. Android常用语句收集
  4. android 由entity创建创建表的sql语句
  5. android room自动生成sql语句
  6. Android - Android Studio 自动(auto)添加import 语句
  7. 在Android library中不能使用switch-case语句访问资源ID
  8. 【简单的学生管理界面】Android的if语句中有字符串判断
  9. Android Sqlite数据库中判断某个表是否存在的SQL语句

随机推荐

  1. 冷月手撕408之操作系统(19)-文件的逻辑结
  2. 冷月手撕408之数据结构(2)-数据结构绪论
  3. 坚果云和亿方云企业网盘有什么区别?
  4. 冷月手撕408之操作系统(18)-文件的概念
  5. 冷月手撕408之操作系统(11)-死锁
  6. 容器 - 数据存储(7)
  7. 冷月手撕408之操作系统(17)-页面分配策略
  8. 冷月手撕408之操作系统(10)-经典同步互斥
  9. 冷月手撕408之操作系统(16)-虚拟内存管理
  10. c语言指针自学