Monday, May 21, 2012

EditText, inputType values (xml)


Where can I find the values that inputType can have?



I'm aware of http://developer.android.com/reference/android/text/InputType.html , but how should the values look like in layout xml files?



Source: Tips4all

3 comments:

  1. You can use the properties tab in eclipse to set various values.

    here are all the possible values


    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


    For more info refer to the link in @Josh 's comment :-)

    ReplyDelete
  2. A bit late in the day, but I think this might be what you're looking for:
    http://developer.android.com/reference/android/R.attr.html

    ReplyDelete
  3. This may be what you're lookng for:
    http://developer.android.com/reference/android/R.styleable.html#TextView_inputType

    ReplyDelete