(一)控制EditText只能输入数字和字母

                

然后在string里面添加:   
    0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

(二)EditText默认是有个框,很丑,去掉框的话设置:

 android:background="@null

(三)输入提示:

 android:hint="@string/password_hint"

更多相关文章

  1. Android的ProgressDialog进度对话框的使用
  2. Android(安卓)上使用library时xml使用自定义属性提示 error: Err
  3. android提取字符串中为字母的字符
  4. [Android(安卓)Studio] FloatingActionButton could not be inst
  5. android 跳转 activity 出现错误 you do not have permission。
  6. android studio编译错误但是不提示哪里错误
  7. Node.js+Koa2+MySQL打造前后端分离精品项目《旧岛》
  8. JumpServer部署使用
  9. 关于Angry Birds不能在我的板子上执行的探索

随机推荐

  1. Android(安卓)and Linux suspend and res
  2. [原]Android(安卓)Native Debug
  3. android 关于Dialog 圆角的问题
  4. android编程中的琐碎知识点汇总(2)
  5. Android(安卓)开发中使用SQLite 数据库
  6. Android源代码下载
  7. linux下操作android模拟器命令
  8. 如何在mac本上安装android sdk
  9. Android笔试总结
  10. Analyzing Android(安卓)Malware