EditText、inputType 值 (XML) [英] EditText, inputType values (XML)
本文介绍了EditText、inputType 值 (XML)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在哪里可以找到 InputType
可以具有的值?
Where can I find the values that InputType
can has?
我知道 http://developer.android.com/参考/android/text/InputType.html,但是这些值在布局 XML 文件中应该是什么样的?
I'm aware of http://developer.android.com/reference/android/text/InputType.html, but how should the values look like in layout XML files?
推荐答案
您可以使用 Eclipse 中的属性选项卡来设置各种值.
You can use the properties tab in eclipse to set various values.
这里是所有可能的值
- 无
- 文字
- textCapCharacters
- textCapWords
- textCapSentences
- textAutoCorrect
- 文本自动完成
- textMultiLine
- textImeMultiLine
- textNoSuggestions
- textUri
- 文本电子邮件地址
- textEmailSubject
- textShortMessage
- textLongMessage
- textPersonName
- textPostalAddress
- 文本密码
- textVisiblePassword
- textWebEditText
- 文本过滤器
- textPhonetic
- textWebEmailAddress
- textWebPassword
- 数量
- 数字签名
- numberDecimal
- 号码密码
- 电话
- 日期时间
- 日期
- 时间
查看这里的解释:http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
这篇关于EditText、inputType 值 (XML)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文