在哪里可以找到 InputType
可以具有的值?
我知道http://developer.android.com/reference/android/text/InputType.html ,但是这些值在布局 XML 文件中应该是什么样子?
最佳答案
您可以使用 Eclipse 中的属性选项卡来设置各种值。
这里是所有可能的值
- 无
- 文字
- textCapCharacters
- textCapWords
- textCapSentences
- 文本自动更正
- 文本自动完成
- 文本多行
- textImeMultiLine
- textNoSuggestions
- textUri
- 文本电子邮件地址
- 文本电子邮件主题
- textShortMessage
- textLongMessage
- 文本人名
- 文本邮政地址
- 文本密码
- textVisiblePassword
- textWebEditText
- 文本过滤器
- 文字拼音
- textWebEmailAddress
- 文本网络密码
- 号码
- 数字签名
- 数字小数
- 数字密码
- 电话
- 日期时间
- 日期
- 时间
在这里查看解释:http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
关于android - EditText、inputType 值 (XML),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2712761/