EditText上,inputType值(XML)EditText、inputType、XML

2023-09-12 10:43:12 作者:我本善良i

我在哪里可以找到值inputType可以有?

Where can I find the values that inputType can have?

我所知道的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

点击此处查看说明:http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType