`
shao_lixin
  • 浏览: 52608 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

This text field does not specify an inputType or a hint

阅读更多
android开发过程中突然发现的warning
EditText 报出 “This text field does not specify an inputType or a hint”


原因:
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"//时间键盘
分享到:
评论

相关推荐

    ISO14229-1_2006

    This part of ISO 14229 specifies data link independent requirements of diagnostic services, which allow a diagnostic tester (client) to control ... It does not specify any implementation requirements.

    US Secure Hash Algorithm 1 (SHA1) (SHA1算法英文介绍)

    not specify an Internet standard of any kind. Distribution of this memo is unlimited. Copyright Notice Copyright (C) The Internet Society (2001). All Rights Reserved. Abstract The purpose of ...

    VB编程资源大全(英文源码 网络)

    iusage.zip NO its not another internet usage monitor its different.Apart from calculating the cost and total time you spend on the net it even reminds you to switch of the net after a time interval...

    DevExpress VCL 13.1.4(v2013vol1.4) 源码-例子-帮助-part2

    Q525613 - Creating a node in a tree list with an unallocated Handle does not specify the node's AbsoluteIndex property value Q520603 - cxDBTreeList - The "List index out of bounds" exception occurs ...

    DevExpress VCL 13.1.4(v2013vol1.4) 源码-例子-帮助-part1

    Q525613 - Creating a node in a tree list with an unallocated Handle does not specify the node's AbsoluteIndex property value Q520603 - cxDBTreeList - The "List index out of bounds" exception occurs ...

    Universal-USB-Installer

    a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or ...

    Health Level Seven - HL7

    Also, HL7 does not specify a set of ISO approved specifications to occupy layers 1 to 6 under HL7’s abstract message specifications. HL7 does, however, correspond to the conceptual definition of an ...

    2009 达内Unix学习笔记

    [] 匹配中括号里的内容[a-z][A-Z][0-9]。 ! 事件。 $ 取环境变量的值。 | 管道。把前一命令的输出作为后一命令的输入,把几个命令连接起来。 |经常跟tee连用,tee 把内容保存到文档并显示出来。 三、通用后...

    Tensorflow 2.1 报错整合

    文章目录Tensorflow 2.1 报错整合RuntimeError: `loss` passed to Optimizer.compute_gradients should be a function when eager ... When eager execution is enabled, `var_list` must specify a list or dict

    时序约束资料

    ### 时序约束资料知识点详解 #### 一、引言 在数字系统设计领域,时序分析是一项重要的技能。特别是对于那些需要高速数据传输的应用场景来说,如何正确地理解和应用时序约束至关重要。本篇文章将根据提供的文件...

    WizFlow网页编辑

    in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a ...

    hibernate-shards.jar

    in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a ...

    计算机网络第六版答案

    An Internet Exchange Points (IXP) (typically in a standalone building with its own switches) is a meeting point where multiple ISPs can connect and/or peer together. An ISP earns its money by ...

    The MD5 Message-Digest Algorithm (MD5算法英文介绍)

    The MD5 Message-Digest Algorithm Status of this Memo This memo provides information for the Internet community.... not specify an Internet standard. Distribution of this memo is unlimited. ...

    SSD7 选择题。Multiple-Choice

    (b) The type of relationship that does not belong anywhere (c) The type of relationship between entities of one entity type (d) The relationship type where the related entities are one and the same...

    RFC1094_NFS网络文件系统协议说明书 .doc

    not specify an Internet standard of any kind. Distribution of this memo is unlimited. 版权声明 Copyright (C) The Internet Society (1999). All Rights Reserved. 摘要: 网络文件系统可以使访问远程机上...

    acpi控制笔记本风扇转速

    Descriptor field names where an "object does not exist" error could be incorrectly generated if the parent ResourceTemplate pathname places the template within a different namespace scope than the ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    (One exception is if an argument Foo or const Foo& has a non-explicit, one-argument constructor, in which case we need the full definition to support automatic type conversion.) We can declare ...

Global site tag (gtag.js) - Google Analytics