“This text field does not specify an inputType ora hint”
来源:互联网 发布:cellsens软件下载 编辑:程序博客网 时间:2024/06/10 06:13
android开发过程中突然发现的warning
//文本类型,多为大写、小写和数字符号。
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 报出 “This text field does not specify an inputType ora hint”
原因:
EditText需要指定默认输入类型
加入android:inputType="number|phone",表示指定为数字或电话
inputtype类型如下:
//数值类型
0 0
- This text field does not specify an inputType ora hint
- “This text field does not specify an inputType ora hint”
- “This text field does not specify an inputType ora hint” warning
- 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)
- 5个启发方式矫治孩子的叛逆心理[图]
- J-LINK MDK的使用
- 第十一周 项目2--职员有薪水了
- 蓝桥杯——说好的进阶之装箱问题
- Verilog分频器
- “This text field does not specify an inputType ora hint”
- 你好
- mini2440之--hello程序
- 变频器
- 真是2
- VS error C2664的解决
- GridView
- jQuery选择器总结
- c语言的概述