edit box EditText, inherit from TextView,TextView Most methods apply, its purpose is to accept the user's input.
You can specify the type of input through the InputType property, and there are many acceptable parameters:
Android:inputtype= "None"-- enter ordinary characters
Android:inputtype= "Text"-- enter ordinary characters
Android:inputtype= "Textcapcharacters"-- enter ordinary characters
Android:inputtype= "Textcapwords"--the first letter size of the word
Android:inputtype= "Textcapsentences"-- only the first letter of size
Android:inputtype= "Textautocorrect" – top two auto-complete
Android:inputtype= "Textautocomplete" – top two auto-complete
Android:inputtype= "Textmultiline"-- multi-line input
Android:inputtype= "Textimemultiline"-- Input method multiple lines (not necessarily supported)
Android:inputtype= "Textnosuggestions"-- not prompted
Android:inputtype= "Texturi"--uri format
Android:inputtype= "Textemailaddress"-- e-mail address format
Android:inputtype= "Textemailsubject"-- Mail subject format
Android:inputtype= "Textshortmessage"-- Short message Format
Android:inputtype= "Textlongmessage"-- Long message format
Android:inputtype= "Textpersonname"-- name format
Android:inputtype= "Textpostaladdress"-- postal format
Android:inputtype= "Textpassword"-- password format
Android:inputtype= "Textvisiblepassword"-- password visible format
Android:inputtype= "Textwebedittext"-- text format as a Web Form
Android:inputtype= "TextFilter"-- text filter format
Android:inputtype= "Textphonetic"-- Pinyin input format
Android:inputtype= "Number"-- digital format
Android:inputtype= "numbersigned"-- signed number format
Android:inputtype= "Numberdecimal"-- floating point format with decimal point
Android:inputtype= "Phone"-- dial keypad
Android:inputtype= "datetime"
Android:inputtype= "Date"-- date keyboard
Android:inputtype= "Time"-- timing keyboard
The EditText component derives two sub-classes:
Autocompletetextview: EditText with auto-completion , just like the browser's search bar, needs to be used in conjunction with Adapter .
Extractedittext: Not a UI component, is The underlying service class for the EditText component, and is responsible for providing full-screen input method support.
Thoughts on Android (18): Edit box EditText