This text field does not specify an inputType or a hint
来源:互联网 发布:tk域名官方网站 编辑:程序博客网 时间:2024/06/13 13:49
这段文本域没有指定输入类型或输入提示
原因:
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"//时间键盘
0 0
- This text field does not specify an inputType or a hint
- (EditText)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
- “This text field does not specify an inputType or a hint”错误
- Google Code Jam 2015 Round 1A 解题报告
- 一个delete和析构函数引发的coredump
- Fedora20上源码安装Xen4.3.0
- leetcode:Roman to Integer
- (KMP 1.6)hdu 2203 亲和串(判断文本串循环移位之后是否能将模式串包含在其中)
- This text field does not specify an inputType or a hint
- 排序算法之交换排序(冒泡和快排)
- ESlint安装使用
- 把EXCEL用程序导入到ORACLE中(SpringMVC+MyBatis)
- 网页编码就是那点事
- 超级封装BaseAdapter,让你省下千万行代码
- Windows API实现窗口居中
- 自己成长路上
- 排序算法之插入排序