Thoughts on Android (18): Edit box EditText

Source: Internet
Author: User

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

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.