EditText:This text field does not specify an inputType or a hint
来源:互联网 发布:淘宝详情页图片像素 编辑:程序博客网 时间:2024/04/29 18:32
用EditText出现这个提示:This text field does not specify an inputType or a hint
后来找了下资料,EditText要制定默认的输入类型。(也许是我用的书比较旧,里面的方法介绍,现在可能都已经不支持了。。)
下面是用android:inputType属性设置允许输入的字符:
inputType的类型:
android:inputType="none"--输入普通字符
android:inputType="text"--输入普通字符
android:inputType="textCapCharacters"--输入普通字符
android:inputType="textCapWords"--单词首字母大小
android:inputType="textCapSentences"--仅第一个字母大小
android:inputType="textAutoCorrect"--前两个自动完成
android:inputType="textAutoComplete"--前两个自动完成
android:inputType="textMultiLine"--多行输入
android:inputType="textImeMultiLine"--输入法多行(不一定支持)
android:inputType="textNoSuggestions"--不提示
android:inputType="textUri"--URI格式
android:inputType="textEmailAddress"--电子邮件地址格式
android:inputType="textEmailSubject"--邮件主题格式
android:inputType="textShortMessage"--短消息格式
android:inputType="textLongMessage"--长消息格式
android:inputType="textPersonName"--人名格式
android:inputType="textPostalAddress"--邮政格式
android:inputType="textPassword"--密码格式
android:inputType="textVisiblePassword"--密码可见格式
android:inputType="textWebEditText"--作为网页表单的文本格式
android:inputType="textFilter"--文本筛选格式
android:inputType="textPhonetic"--拼音输入格式
android:inputType="number"--数字格式
android:inputType="numberSigned"--有符号数字格式
android:inputType="numberDecimal"--可以带小数点的浮点格式
android:inputType="phone"--拨号键盘
android:inputType="datetime"
android:inputType="date"--日期键盘
android:inputType="time"--时间键盘
- (EditText)This text field does not specify an inputType or a hint
- EditText:This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- Android This text field does not specify an inputType or a hint 解决
- 关于Android的This text field does not specify an inputType or a hint 问题
- This text field does not specify an inputType or a hint
- android 在布局文件中报错:This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- 黄色警告: This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- android学习记录(This text field does not specify an inputType or a hint)
- This text field does not specify an inputType or a hint
- Android:This text field does not specify an inputType or a hint
- OC中的Selector小解
- HDOJ 5141 LIS again 二分
- 博客学习日记-2014/12/11
- 【Linux】16条技巧让你更高效使用SSH
- AndroidStudio一直在feching
- EditText:This text field does not specify an inputType or a hint
- 块设备入门
- 基于intel芯片的安卓蓝牙4.0 BLE通信总结
- 粒子系统
- web project的Jar包冲突
- logstash+elasticsearch+redis+kibana3 日志收集系统搭建
- hbase shell 常用命令
- uploadify导致浏览器崩溃的解决方法
- 使用event.keyCode来判断是否为数字