首页 > 移动平台 > 详细

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

时间:2015-01-28 19:24:23      阅读:435      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!