Android inputtype attributes

Source: Internet
Author: User

The software virtual keyboard function is added after Android 1.5, so the corresponding soft keyboard mode will be displayed in the input prompt.
In Android, The inputtype attribute plays an important role in the style of the virtual keyboard started when the edittext value is input. This greatly facilitates operations. Sometimes the virtual keyboard is only a character or a number. Therefore, inputtype is particularly important.
<Edittext Android: layout_width = "fill_parent" Android: layout_height = "wrap_content"
Android: inputtype = "phone"/>
// Text type, mostly uppercase, lowercase, and numeric characters.
Android: inputtype = "NONE"
Android: inputtype = "text"
Android: inputtype = "textcapcharacters" uppercase letters
Android: inputtype = "textcapwords" uppercase letters
Android: inputtype = "textcapsentences" only uppercase letters
Android: inputtype = "textautocorrect" automatically completed
Android: inputtype = "textautocomplete" Automatic completion
Android: inputtype = "textmultiline" multi-line Input
Android: inputtype = "textimemultiline" multi-line Input Method (if supported)
Android: inputtype = "textnosuggestions" No prompt
Android: inputtype = "texturi" url
Android: inputtype = "textemailaddress" email address
Android: inputtype = "textemailsubject" Email Subject
Android: inputtype = "textreceivmessage" Short Message
Android: inputtype = "textlongmessage" long message
Android: inputtype = "textpersonname"
Android: inputtype = "textpostaladdress" Address
Android: inputtype = "textpassword" Password
Android: inputtype = "textvisiblepassword" visible Password
Android: inputtype = "textwebedittext" as the webpage form text
Android: inputtype = "textfilter" text filtering
Android: inputtype = "textphonetic" PinYin Input
// Numeric type
Android: inputtype = "Number" Number
Android: inputtype = "numbersigned" signed numeric format
Android: inputtype = "numberdecimal" floating point format with decimal point
Android: inputtype = "phone" dial-up keyboard
Android: inputtype = "datetime" time and date
Android: inputtype = "date" date keyboard
Android: inputtype = "time" time keyboard

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.