android:inputType

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。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

魑魅魍魉9527

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值