(Turn) Android EditText InputType instructions

Source: Internet
Author: User

In the process of development, edittext is often used, how to make the virtual keyboard adapt to the type of content in the input box, usually we will add android:inputtype= "" in the XML file.

Android:inputtype= "None"

Android:inputtype= "Text"

Android:inputtype= "Textcapcharacters"//first 3 input ordinary characters

Android:inputtype= "textcapwords"//Word Initial letter size

Android:inputtype= "Textcapsentences"//only the first letter size

Android:inputtype= "Textautocorrect"

Android:inputtype= "Textautocomplete"//first 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"//Email subject format

Android:inputtype= "Textshortmessage"//Short Message format

Android:inputtype= "Textlongmessage"

Android:inputtype= "Textpersonname"//Name format

Android:inputtype= "textpostaladdress"//Postal format

Android:inputtype= "Textpassword"//Password format

Android:inputtype= "Textvisiblepassword"//Password visible format

Android:inputtype= "Textwebedittext"//As Text format for Web Forms

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 pad

Android:inputtype= "datetime" android:inputtype= "date"//Date keyboard

Android:inputtype= "Time"//Timing keyboard

Original source: http://cyxinda.blog.163.com/blog/static/36596186201272012130112/

(Turn) Android EditText InputType instructions

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.