InputType in the-edittext of Android data

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.