When writing a custom control that has edittext, you might use the EditText InputType property, which is written directly in XML with the string type, but the dynamic setting becomes int, and inputtype defines the corresponding constant. When a custom control needs to control this property of the EditText in the control by writing parameters in XML, it can be dynamically set according to the character type to return the corresponding int value.
Here are all the values and descriptions of InputType in EditText, from the network.
Text types, many uppercase, lowercase, and number symbols.
Android:inputtype= "None"
Android:inputtype= "Text"
Android:inputtype= "Textcapcharacters" letter capitalization
Android:inputtype= "Textcapwords" first letter capitalization
Android:inputtype= "Textcapsentences" only the first letter of capitalization
Android:inputtype= "Textautocorrect" auto-complete
Android:inputtype= "Textautocomplete" auto-complete
Android:inputtype= "Textmultiline" multi-line input
Android:inputtype= "Textimemultiline" Input method multiple lines (if supported)
Android:inputtype= "Textnosuggestions" does not prompt
android:inputtype= "Texturi" url
Android:inputtype= "textemailaddress" email address
Android:inputtype= "textemailsubject" message subject
Android:inputtype= "Textshortmessage" SMS
Android:inputtype= "Textlongmessage" long message
Android:inputtype= "Textpersonname" name
Android:inputtype= "Textpostaladdress" address
android:inputtype= "Textpassword" password
Android:inputtype= "Textvisiblepassword" Visible password
Android:inputtype= "Textwebedittext" as the text of a Web Form
Android:inputtype= "TextFilter" Text filter filter
Android:inputtype= "textphonetic" Pinyin input
Numeric type
Android:inputtype= "Number" numbers
Android:inputtype= "numbersigned" signed number format
Android:inputtype= "Numberdecimal" floating-point format with decimal point
Android:inputtype= "Phone" dial pad
Android:inputtype= "datetime" Time Date
Android:inputtype= "Date" dates keyboard
Android:inputtype= "Time" keyboard
InputType in the-edittext of Android data