android 的文本框输入类型
16lz
2022-06-10
zzz:http://blog.csdn.net/weaver2007/article/details/8742618
android:inputType用来设置文本的类型,用于帮助输入法显示合适的键盘类型。如果输入密码需要星号显示,则需要指定密码格式为android:inputType="textPassword" ,如果使用老版的android:password="true"会提示一个警告。
android:password is deprecated: Use inputType instead
Issue: Looks for usages of deprecated layouts, attributes, and so on.
Id: Deprecated
Deprecated views, attributes and so on are deprecated because there is a better way to do something. Do it that new way. You've been warned.
android:password已过时:应该使用inputType属性
问题描述:过时的布局,属性等的用法。
ID:过时
过时的看法,属性等被弃用,因为有一个更好的方式做一些事情。做到这一点,新方法。你已经被警告。
android:inputType有如下值设置:
none、
text、
textCapCharacters字母大小、
textCapWords单词首字母大小、
textCapSentences仅第一个字母大小、
textAutoCorrect、textAutoComplete自动完成、
textMultiLine多行输入、
textImeMultiLine输入法多行(如果支持)、
textNoSuggestions不提示、
textEmailAddress电子邮件地址、
textEmailSubject邮件主题、
textShortMessage短信息(会多一个表情按钮出来)
textLongMessage长讯息
textPersonName人名
textPostalAddress地址
textPassword密码
textVisiblePassword可见密码
textWebEditText作为网页表单的文本
textFilte文本筛选过滤
textPhonetic拼音输入
numberSigned有符号数字格式
numberDecimal可带小数点的浮点格式
phone电话号码
datetime时间日期
date日期
time时间。
更多相关文章
- GridView属性集合 drawSelectorOnTop
- Android学习之使用RadioGroup与RadioButton实现单选效果
- Android统计EditText的字母数字以及汉字的统计方法
- Android(安卓)ImageView的scaleType属性与adjustViewBounds属性
- View类的XML属性、相关方法及说明
- android设置Activity背景透明
- Android(安卓)ImageView的scaleType属性与adjustViewBounds属性
- ImageView的android:adjustViewBounds属性
- Android的Btimap处理大图片解决方法