码迷,mamicode.com
首页 > 移动开发 > 详细

Android警告 <Multiple annotations found at this line: - This text field does not specify an inputType or a hint >

时间:2015-01-28 19:25:15      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:

Multiple annotations found at this line:
- No label views point to this text field with a labelFor
attribute
- This text field does not specify an inputType or a hint

<坑爹的19-各种改>

<EditText>爆出警告

什么原因呢?其实木有错,只是编译器发出警告你没有指定文本框输入类型,如text,number。

指定输入类型代码  android:inputType="text"  默认为文本类型

 

 //文本类型,多为大写、小写和数字符号。
    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警告 <Multiple annotations found at this line: - This text field does not specify an inputType or a hint >

标签:

原文地址:http://www.cnblogs.com/sandaoliu/p/4256622.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!