EditText上,inputType值(XML) [英] EditText, inputType values (xml)
问题描述
我在哪里可以找到值inputType可以有?
Where can I find the values that inputType can have?
我所知道的<一href="http://developer.android.com/reference/android/text/InputType.html">http://developer.android.com/reference/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
- textAutoComplete
- textMultiLine
- textImeMultiLine
- textNoSuggestions
- textUri
- textEmailAddress
- textEmailSubject
- textShortMessage
- textLongMessage
- textPersonName
- textPostalAddress
- textPassword
- textVisiblePassword
- textWebEditText
- textFilter
- textPhonetic
- textWebEmailAddress
- textWebPassword
- 号
- numberSigned
- numberDecimal
- numberPassword
- 电话
- 日期时间
- 日期
- 时间
- none
- text
- textCapCharacters
- textCapWords
- textCapSentences
- textAutoCorrect
- textAutoComplete
- textMultiLine
- textImeMultiLine
- textNoSuggestions
- textUri
- textEmailAddress
- textEmailSubject
- textShortMessage
- textLongMessage
- textPersonName
- textPostalAddress
- textPassword
- textVisiblePassword
- textWebEditText
- textFilter
- textPhonetic
- textWebEmailAddress
- textWebPassword
- number
- numberSigned
- numberDecimal
- numberPassword
- phone
- datetime
- date
- time
点击此处查看说明:<一href="http://developer.android.com/reference/android/widget/TextView.html#attr_android%3ainputType">http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
这篇关于EditText上,inputType值(XML)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!