`
shao_lixin
  • 浏览: 50784 次
  • 性别: 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"//时间键盘
分享到:
评论

相关推荐

    IEEE-830-1998.pdf

    This guide is written under the premise that the current state of the art does not warrant or support such a formal standards document. This guide is applicable to in-house and commercial software ...

    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 ...

    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

    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 ...

    The Component Object Model Specification

    The furnishing of this document does not give you a license to these trademarks, copyrights, patents, or other intellectual property rights. This document contains the specification to the Component ...

    RFC 3619 - Extreme Networks' Ethernet Automatic Protection Switching (EAPS) Version 1.pdf

    This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited.

    时序约束资料

    很好的时序分析资料,很适合初学者,希望能够帮助初学者

    Optimized Link State Routing Protocol

    This memo defines an Experimental Protocol for ... It does not specify an Internet standard of any kind. Discussion and suggestions for improvement are requested. Distribution of this memo is unlimited.

    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 ...

    RFC 3561 aodv

    This memo defines an Experimental Protocol for ... It does not specify an Internet standard of any kind. Discussion and suggestions for improvement are requested. Distribution of this memo is unlimited

    rfc3561.pdf

    This memo defines an Experimental Protocol for ... It does not specify an Internet standard of any kind. Discussion and suggestions for improvement are requested. Distribution of this memo is unlimited.

    计算机网络第六版答案

    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. ...

Global site tag (gtag.js) - Google Analytics