2010-04-26 3 views
108

Где я могу найти значения, которые может иметь тип inputType?EditText, inputType values ​​(xml)

Я знаю http://developer.android.com/reference/android/text/InputType.html, но как должны выглядеть значения в макете xml-файлах?

+3

Это может быть то, что вы lookng для: http://developer.android.com/reference/android/R.styleable.html#TextView_inputType –

+2

Немного поздновато, но я думаю, что это может быть то, что вы ищете: http://developer.android.com/reference/android/R.attr.html – ChrisV

+1

В частности, http: // разработчик.android.com/reference/android/R.attr.html#inputType – cottonBallPaws

ответ

277

Вы можете использовать вкладку свойств в eclipse для установки различных значений.

здесь все возможные значения

  • ни
  • текст
  • 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
  • телефон
  • DateTime Дата
  • время

Проверить здесь объяснения: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType

+52

http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType – Josh

+0

Описание ...? –

-8

Попробуйте следующий фрагмент кода. Вот как должен выглядеть стандартный ввод. Я протестировал его с 4.4.

<EditText 
    android:id="@+id/activity2UsernameEditText" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:layout_alignBottom="@+id/activity2SaveButton" 
    android:layout_alignParentLeft="true" 
    android:layout_marginBottom="88dp" 
    android:ems="10" 
android:inputType="textNoSuggestions" /> 
+0

его не абсолютный ответ на этот вопрос. – kablu

 Смежные вопросы

  • Нет связанных вопросов^_^