본문 바로가기

Android

[xml]TextView _ inputType

public interface

InputType

android.text.InputType
Known Indirect Subclasses

Class Overview


Bit definitions for an integer defining the basic content type of text held in an Editable object. 

Supported classes may be combined with variations and flags to indicate desired behaviors.

Summary

Constants
intTYPE_CLASS_DATETIMEClass for dates and times.
intTYPE_CLASS_NUMBERClass for numeric text.
intTYPE_CLASS_PHONEClass for a phone number.
intTYPE_CLASS_TEXTClass for normal text.
intTYPE_DATETIME_VARIATION_DATEDefault variation of TYPE_CLASS_DATETIME: allows entering only a date.
intTYPE_DATETIME_VARIATION_NORMALDefault variation of TYPE_CLASS_DATETIME: allows entering both a date and time.
intTYPE_DATETIME_VARIATION_TIMEDefault variation of TYPE_CLASS_DATETIME: allows entering only a time.
intTYPE_MASK_CLASSMask of bits that determine the overall class of text being given.
intTYPE_MASK_FLAGSMask of bits that provide addition bit flags of options.
intTYPE_MASK_VARIATIONMask of bits that determine the variation of the base content class.
intTYPE_NULLSpecial content type for when no explicit type has been specified.
intTYPE_NUMBER_FLAG_DECIMALFlag of TYPE_CLASS_NUMBER: the number is decimal, allowing a decimal point to provide fractional values.
intTYPE_NUMBER_FLAG_SIGNEDFlag of TYPE_CLASS_NUMBER: the number is signed, allowing a positive or negative sign at the start.
intTYPE_NUMBER_VARIATION_NORMALDefault variation of TYPE_CLASS_NUMBER: plain normal numeric text.
intTYPE_NUMBER_VARIATION_PASSWORDVariation of TYPE_CLASS_NUMBER: entering a numeric password.
intTYPE_TEXT_FLAG_AUTO_COMPLETEFlag for TYPE_CLASS_TEXT: the text editor is performing auto-completion of the text being entered based on its own semantics, which it will present to the user as they type.
intTYPE_TEXT_FLAG_AUTO_CORRECTFlag for TYPE_CLASS_TEXT: the user is entering free-form text that should have auto-correction applied to it.
intTYPE_TEXT_FLAG_CAP_CHARACTERSFlag for TYPE_CLASS_TEXT: capitalize all characters.
intTYPE_TEXT_FLAG_CAP_SENTENCESFlag for TYPE_CLASS_TEXT: capitalize first character of each sentence.
intTYPE_TEXT_FLAG_CAP_WORDSFlag for TYPE_CLASS_TEXT: capitalize first character of all words.
intTYPE_TEXT_FLAG_IME_MULTI_LINEFlag for TYPE_CLASS_TEXT: the regular text view associated with this should not be multi-line, but when a fullscreen input method is providing text it should use multiple lines if it can.
intTYPE_TEXT_FLAG_MULTI_LINEFlag for TYPE_CLASS_TEXT: multiple lines of text can be entered into the field.
intTYPE_TEXT_FLAG_NO_SUGGESTIONSFlag for TYPE_CLASS_TEXT: the input method does not need to display any dictionary-based candidates.
intTYPE_TEXT_VARIATION_EMAIL_ADDRESSVariation of TYPE_CLASS_TEXT: entering an e-mail address.
intTYPE_TEXT_VARIATION_EMAIL_SUBJECTVariation of TYPE_CLASS_TEXT: entering the subject line of an e-mail.
intTYPE_TEXT_VARIATION_FILTERVariation of TYPE_CLASS_TEXT: entering text to filter contents of a list etc.
intTYPE_TEXT_VARIATION_LONG_MESSAGEVariation of TYPE_CLASS_TEXT: entering the content of a long, possibly formal message such as the body of an e-mail.
intTYPE_TEXT_VARIATION_NORMALDefault variation of TYPE_CLASS_TEXT: plain old normal text.
intTYPE_TEXT_VARIATION_PASSWORDVariation of TYPE_CLASS_TEXT: entering a password.
intTYPE_TEXT_VARIATION_PERSON_NAMEVariation of TYPE_CLASS_TEXT: entering the name of a person.
intTYPE_TEXT_VARIATION_PHONETICVariation of TYPE_CLASS_TEXT: entering text for phonetic pronunciation, such as a phonetic name field in contacts.
intTYPE_TEXT_VARIATION_POSTAL_ADDRESSVariation of TYPE_CLASS_TEXT: entering a postal mailing address.
intTYPE_TEXT_VARIATION_SHORT_MESSAGEVariation of TYPE_CLASS_TEXT: entering a short, possibly informal message such as an instant message or a text message.
intTYPE_TEXT_VARIATION_URIVariation of TYPE_CLASS_TEXT: entering a URI.
intTYPE_TEXT_VARIATION_VISIBLE_PASSWORDVariation of TYPE_CLASS_TEXT: entering a password, which should be visible to the user.
intTYPE_TEXT_VARIATION_WEB_EDIT_TEXTVariation of TYPE_CLASS_TEXT: entering text inside of a web form.
intTYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESSVariation of TYPE_CLASS_TEXT: entering e-mail address inside of a web form.
intTYPE_TEXT_VARIATION_WEB_PASSWORDVariation of TYPE_CLASS_TEXT: entering password inside of a web form.