属性作用
android:hint="输入邮箱/用户名"提示信息
android:inputType="textPassword"设置文本的类型
android:password="true"以小点”.”显示文本

更多:http://blog.csdn.net/zhang3776813/article/details/39027327

程序设置属性:

editText.clearFocus(); 失去焦点
editText.requestFocus();获取焦点

更多相关文章

  1. Android中ListView中显示图片和文本
  2. Layout属性介绍
  3. android : 圆角按钮 shape属性
  4. Android maxLine属性导致android:imeOptions失效
  5. android:layout_weight 属性对于组件长度的影响
  6. Android清单文件属性大全

随机推荐

  1. [Unity3D]调用Android接口
  2. nor current process has android.permis
  3. Android获取外部和内部存储空间总大小和
  4. 关于android软键盘隐藏总结
  5. Android studio 快捷键(本人习惯,有做一些
  6. ubuntu下ndk编译ffmpeg0.8.1
  7. Android学习——异常(1)
  8. android 判断MIUI悬浮窗权限是否打开
  9. EditText控件默认总是获取输入法的解决办
  10. 适用于Google Play开发者控制台的付费应