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

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"//时间键盘

时间: 2024-10-10 13:16:19

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

android 自定义view Multiple annotations found at this line:

在安卓自定义View中,自定义属性会报一个错Multiple annotations found at this line:然后提示各种属性没有 解决办法是 在 最外层的 xmlns:****="":  这个地方中,去掉  apk/res/ ,就是达到 自定义view的 目录 接上http://schemas.android.com/ 这个就好了. 加上 /apk/res会让编译器去扫描res下面的东西

jsp页面提示“Multiple annotations found at this line: - The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path”解决方案

Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 新建jsp页面老提示: Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was

解决eclipse Multiple annotations found at this line 错误

eclipse Multiple annotations found at this line错误,eclipse开发过程中,一些XML配置文件会报错,但是这些其实不是错,飘红的原因是因为eclipse的校验问题. 去掉校验设置步骤: 1.设置全局eclipse校验信息,windows>preferences>Validation,在编辑面板选中"Enable project specific settings",同时选中"Suspend all validato

eclipse新建JSP页面报错:Multiple annotations found at this line解决方法

错误提示: Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 错误原因:缺少编译JSP页面

Multiple annotations found at this line: – cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘dubbo:application’.

公司的项目,本机启动报错: Multiple annotations found at this line: – cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. – schema_reference.4: Failed to read schema document 'http://code.aliba

eclipse报错:Multiple annotations found at this line: - String cannot be resolved to a type解决方法实测

Multiple annotations found at this line:- String cannot be resolved to a type- The method getContextPath() from the type HttpServletRequest refers to the missing type String 解决办法: 首先 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错

maven的pom.xml中出现Multiple annotations found at this line:错误

一般这个错误出现在pom.xml的第一行,出错信息如下: Multiple annotations found at this line: - Missing artifact stax:stax-api:jar:1.0.1 - ArtifactTransferException: Failure to transfer stax:stax-api:jar:1.0.1 from http://dist.codehaus.org/ was cached in the local repositor

在用 &lt;%@include file=&quot;date.jsp&quot; %&gt; &quot;date.jsp&quot;老提示出错,错误为: Multiple annotations found at this line: - Duplicate local variable path - Duplicate local variable basePath 该怎么解决呢?

重复变量 date.jsp文件内部不应该再出现重复的变量定义 也就是<%@include%>是先把文件源代码一模一样的拷贝过来,然后才开始编译 所以如果有相同的变量肯定报错 用了动态的<jsp: include file="top.jsp" />的就正确了 因为<%@include%>引进的是代码,把代码包含进来,而新进JSP时,会默认生成 <% String path = request.getContextPath(); String ba

springMVC框架 springmvc-config.xml文件 导入beans、context、mvc命名空间后报错:xml页面开头报错Multiple annotations found at this line

根据网上给出的解决方案,可以解决 1.调出MyEclipse的preference,按照如下图示配置 2.配置好之后,就可以在springmvc-congig.xml文件中引入如下命名空间了 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="