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"//时间键盘
分享到:
相关推荐
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.
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 ...
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...
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 ...
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 ...
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 ...
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 ...
[] 匹配中括号里的内容[a-z][A-Z][0-9]。 ! 事件。 $ 取环境变量的值。 | 管道。把前一命令的输出作为后一命令的输入,把几个命令连接起来。 |经常跟tee连用,tee 把内容保存到文档并显示出来。 三、通用后...
文章目录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
### 时序约束资料知识点详解 #### 一、引言 在数字系统设计领域,时序分析是一项重要的技能。特别是对于那些需要高速数据传输的应用场景来说,如何正确地理解和应用时序约束至关重要。本篇文章将根据提供的文件...
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 ...
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 Status of this Memo This memo provides information for the Internet community.... not specify an Internet standard. Distribution of this memo is unlimited. ...
(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...
not specify an Internet standard of any kind. Distribution of this memo is unlimited. 版权声明 Copyright (C) The Internet Society (1999). All Rights Reserved. 摘要: 网络文件系统可以使访问远程机上...
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 ...
(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 ...