1. Create an Android project, if you don't already have one.
2. Open the main.xml file and Add a ScrollView. (Just for this example, to show all the examples)
3. In the main.xml file, add the EditText widgets below
<EditText
...
android:inputType="none" />
<!-- Has regular text keys, with microphone and enter key sign -->
<EditText
...
android:inputType="textCapCharacters" />
<!-- Has the upper case text letter display. You ARE able to switch to lower case and type those also though. with next button -->
<EditText
...
android:inputType="textCapWords" />
<!-- The first character of every word is capitalized (by default, but you can change it. with next button -->
<EditText
...
android:inputType="textCapSentences" />
<!-- The first character of every sentence is capitalized. (by default, but you can change it) with next button -->
<EditText
...
android:inputType="textAutoCorrect" />
<!-- (autocorrect doesn't seem to work for me. :( -->
<EditText
...
android:inputType="textAutoCorrect" />
<!-- (doesn't seem to work for me. ) Can be combined with text and its variations to specify that this field will be doing its own auto-completion and talking with the input method appropriately. -->
<EditText
...
android:inputType="textMultiLine" />
<!-- has enter key instead of next button, when you press the enter button, it goes creates a new line in the same edittext. Can be combined with text and its variations to allow multiple lines of text in the field. If this flag is not set, the text field will be constrained to a single line. -->
<EditText
...
android:inputType="textImeMultiLine" />
<!-- has next button. Can be combined with text and its variations to indicate that though the regular text view should not be multiple lines, the IME should provide multiple lines if it can. -->
<EditText
...
android:inputType="textNoSuggestions" />
<!-- text keyboard, with no suggestions. ..to indicate that the IME should not show any dictionary-based word suggestions. -->
<EditText
...
android:inputType="textUri" />
<!-- has a text keyboard with a / instead of a , and a next button(Text that will be used as a URI.) -->
<EditText
...
android:inputType="textEmailAddress" />
<!-- has text keyboard with @ instead of , and next button(Text that will be used as an e-mail address.) -->
<EditText
...
android:inputType="textEmailSubject" />
<!-- has text keyboard with a , and next button. Text that is being supplied as the subject of an e-mail. -->
<EditText
...
android:inputType="textShortMessage" />
<!-- has text keyboard with , and :-) options. no next button or enter button. Text that is the content of a short message. -->
<EditText
...
android:inputType="textLongMessage" />
<!-- has text keyboard with , and next button. Text that is the content of a long message. -->
<EditText
...
android:inputType="textPersonName" />
<!-- has text keyboard with, and next button. Text that is the name of a person. -->
<EditText
...
android:inputType="textPostalAddress" />
<!-- has text keyboard with, and next button. Text that is being supplied as a postal mailing address. -->
<EditText
...
android:inputType="textPassword" />
<!-- has text keyboard , and next button. typed text looks like *****. text that is a password -->
<EditText
...
android:inputType="textVisiblePassword" />
<!-- has text keyboard , and next button. text is visible. no microphone. Text that is a password that should be visible. -->
<EditText
...
android:inputType="textWebEditText" />
<!-- has text keyboard , microphone, and tab button. Text that is being supplied as text in a web form. -->
<EditText
...
android:inputType="textFilter" />
<!--has text keyboard , and next button, microphone. Text that is filtering some other data. -->
<EditText
...
android:inputType="textPhonetic" />
<!-- has text keyboard , and next button, microphone. Text that is for phonetic pronunciation, such as a phonetic name field in a contact entry. -->
<EditText
...
android:inputType="textWebEmailAddress" />
<!-- has text keyboard , and next button, microphone. Text that will be used as an e-mail address on a web form. -->
<EditText
...
android:inputType="textWebPassword" />
<!-- has text keyboard , and next button, microphone. Text that will be used as a password on a web form. -->
<EditText
...
android:inputType="number" />
<!-- shows number keypad and next button. A numeric only field. defaults to only one line, not multi-line. defaults to a horizontal scroll. -->
<EditText
...
android:inputType="numberSigned" />
<!-- shows number keypad and next button. ** I am not able to type $ on numeric keypad. ** defaults to only one line, not multi-line. defaults to a horizontal scroll.-->
<EditText
...
android:inputType="numberDecimal" />
<!-- shows number keypad and next button. ** I am not able to type a decimal (.) on the numeric keypad.** defaults to only one line, not multi-line. defaults to a horizontal scroll. -->
<EditText
...
android:inputType="numberPassword" />
<!-- shows number keypad and next button. typed number IS displayed. A numeric password field. -->
<EditText
...
android:inputType="phone" />
<!-- shows number keypad and next button. For entering a phone number -->
<EditText
...
android:inputType="datetime" />
<!-- shows number keypad and next button. for entering a date and time -->
<EditText
...
android:inputType="date" />
<!-- shows number keypad and next button. For entering a date. -->
<EditText
...
android:inputType="time" />
<!-- shows number keypad and next button. For entering a time. -->
4. Compile and run!
http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
http://developer.android.com/reference/android/R.attr.html#inputType
http://developer.android.com/training/keyboard-input/style.html
http://developer.android.com/guide/topics/ui/controls/text.html
http://stackoverflow.com/questions/5440327/androidinputtype-textemailaddress-key-and-a-com-key
Other Resources