哪些年遇到过的Andriod问题(5)This text field does not specify an inputType or a hint
2012-08-31 11:23
656 查看
这段文本域没有指定输入类型或输入提示
原因:
EditText需要指定默认输入类型
加入android:inputType="number|phone",表示指定为数字或电话
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"
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需要指定默认输入类型
加入android:inputType="number|phone",表示指定为数字或电话
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"
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"//时间键盘
相关文章推荐
- 关于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
- android的main.xml文件中编写控件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“
- 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学习系列第一弹之《warning: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