diff --git a/core/java/android/text/InputType.java b/core/java/android/text/InputType.java index d50684af911d5..41d5b84a5b66f 100644 --- a/core/java/android/text/InputType.java +++ b/core/java/android/text/InputType.java @@ -20,7 +20,25 @@ import android.text.TextUtils; /** * Bit definitions for an integer defining the basic content type of text - * held in an {@link Editable} object. + * held in an {@link Editable} object. Supported classes may be combined + * with variations and flags to indicate desired behaviors. + * + *

Examples

+ * + *
+ *
A password field with with the password visible to the user: + *
inputType = TYPE_CLASS_TEXT | + * TYPE_TEXT_VARIATION_VISIBLE_PASSWORD + * + *
A multi-line postal address with automatic capitalization: + *
inputType = TYPE_CLASS_TEXT | + * TYPE_TEXT_VARIATION_POSTAL_ADDRESS | + * TYPE_TEXT_FLAG_MULTI_LINE + * + *
A time field: + *
inputType = TYPE_CLASS_DATETIME | + * TYPE_DATETIME_VARIATION_TIME + *
*/ public interface InputType { /**