TextView | Android:inputType 输入类型的完整的列表:
none
没有内容类型。文本不可编辑。
text
只是老文本。对应于type_class_text | type_text_variation_normal。
textCapCharacters
可以与文本及其变体相结合,以请求所有字符的大写。对应于type_text_flag_cap_characters。
textCapWords
可以结合文本和它的变化,要求大写的每一个字的第一个字。对应于type_text_flag_cap_words。
textCapSentences
可以结合文本和它的变化,要求大写的每个句子的第一个字符。对应于type_text_flag_cap_sentences。
textautocorrect
可与文本及其变化相结合,以请求文本输入的自动校正。对应totype_text_flag_auto_correct。
textautocomplete
可以结合文本和它的变化来指定这个字段将做自己的自动完成和适当的输入方法交谈。对应于type_text_flag_auto_complete。
textmultiline
可以与文本及其变体相结合,允许字段中的多行文本。如果未设置此标志,则文本字段将被限制为单行。对应于type_text_flag_multi_line。
textimemultiline
可以结合文本和它的变化来表示,虽然普通文本视图不应该是多行的,IME应该提供多行,如果它可以。对应于type_text_flag_ime_multi_line。
textNoSuggestions
可以与文本和它的变化相结合,以表明输入法不应该显示任何基于字典的字建议。对应于type_text_flag_no_suggestions。
texturi
将用作URI的文本。对应于type_class_text | type_text_variation_uri。
textemailaddress
将用作电子邮件地址的文本。对应于type_class_text | type_text_variation_email_address。
textemailsubject
作为电子邮件主题提供的文本。对应于type_class_text | type_text_variation_email_subject。
textshortmessage
文本是短消息的内容。对应于type_class_text | type_text_variation_short_message。
textlongmessage
文本是长信息的内容。对应于type_class_text | type_text_variation_long_message。
textpersonname
文本是一个人的名字。对应于type_class_text | type_text_variation_person_name。
textpostaladdress
作为邮政地址提供的文本。对应于type_class_text | type_text_variation_postal_address。
textpassword
密码文本。对应于type_class_text | type_text_variation_password。
textvisiblepassword
应该是可见的密码的文本。对应于type_class_text | type_text_variation_visible_password。
textwebedittext
以web形式作为文本提供的文本。对应于type_class_text | type_text_variation_web_edit_text。
textfilter
过滤其他数据的文本。对应totype_class_text | type_text_variation_filter。
textPhonetic
用于语音发音的文本,如在联系人条目中的语音名称字段。对应于type_class_text | type_text_variation_phonetic。
textwebemailaddress
将用作Web窗体上的电子邮件地址的文本。对应于type_class_text | type_text_variation_web_email_address。
textwebpassword
将用作Web窗体上的密码的文本。对应于type_class_text | type_text_variation_web_password。
number
仅数值字段。对应于type_class_number | type_number_variation_normal。
numbersigned
可以与数字及其其他选项相结合,允许有符号数。对应于type_class_number | type_number_flag_signed。
numberdecimal
可以与数字及其其他选项相结合,允许小数(小数)个数。对应totype_class_number | type_number_flag_decimal。
numberPassword
数字密码字段。对应于type_class_number | type_number_variation_password。
phone
输入电话号码。对应于type_class_phone。
datetime
输入日期和时间。对应于type_class_datetime | type_datetime_variation_normal。
date
输入日期。对应于type_class_datetime | type_datetime_variation_date。
time
进入一个时间。对应于type_class_datetime | type_datetime_variation__date。