EditText,inputType值(xml)


127

在哪里可以找到InputType可以拥有的价值?

我知道http://developer.android.com/reference/android/text/InputType.html,但是这些值在布局xml文件中应如何显示?


2
当天下午,我想这可能是您要寻找的东西:developer.android.com/reference/android/R.attr.html
— ChrisV 2010年


Answers:


308

您可以使用eclipse中的“属性”选项卡来设置各种值。

这是所有可能的值

  • 没有
  • 文本
  • textCapCharacters
  • textCapWords
  • textCapSentences
  • textAutoCorrect
  • textAutoComplete
  • textMultiLine
  • textImeMultiLine
  • textNoSuggestions
  • textUri
  • textEmailAddress
  • textEmailSubject
  • textShortMessage
  • textLongMessage
  • textPersonName
  • textPostalAddress
  • textPassword
  • textVisiblePassword
  • textWebEditText
  • textFilter
  • 文字语音
  • textWebEmailAddress
  • textWebPassword
  • 数
  • numberSigned
  • 数字小数
  • numberPassword
  • 电话
  • 约会时间
  • 日期
  • 时间

检查此处以获取解释:http : //developer.android.com/reference/android/widget/TextView.html#attr_android : inputType



描述...?
— Yousha Aleayoub

24

补充答案

这是每种输入类型的标准键盘的行为方式。

在此处输入图片说明

有关更多详细信息,请参见此答案。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.