Android developer needs to know EditText attribute parsing

Source: Internet
Author: User
<span id="Label3"></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Wheat Academy Android Development Tan teacher Said: only to start learning Android development, the basic knowledge of Android development is must understand, remember, Skilled. In the development of android, edittext inherit textview, so EditText has TextView attribute characteristics, The following mainly introduces some edittext of the characteristics of the unique Input method properties</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"></p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:layout_gravity= "center_vertical": Sets the location where the control is displayed: default top, centered here, and bottom</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"></p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:hin:Text the text message that is displayed when empty, you can set the color of the hint information by Textcolorhint.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:singleline: sets Single-line input, and once set to true, the text is not wrapped automatically.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:gray= "top": multi-row Pointer in the first row of the first position et.setselection (et.length ());: adjusts the cursor to the last line</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:autotext: automatic spelling Help. The individual settings here are not effective and may require additional input method assistance.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:capitalize: sets the English letter capitalization type. Set the following values: sentences only the first letter of the uppercase, words each word the first letter size, with a space to distinguish between words; characters each English letter is Capitalized.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:digits: sets which characters are allowed to be entered. such as "1234567890.+-*/%\\n ()"</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:singleline: whether a single line or multiple rows, enter is to leave the text box or text box to add a new line android:numeric: if set, the TextView receives a digital Input. The following values are set: integer positive integer, signed signed integer, decimal with decimal point floating point number.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:inputtype: setting the type of text</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:password: Password to dot "." Display text</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:phonenumber: sets the input method for the phone number.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:editable: sets whether it can be edited. You can still get the cursor, but you cannot enter it.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:autolink= "all": Set Text hyperlink style when you click the url, skip to the URL</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Android:textcolor = "#ff8c00": Font Color</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:textstyle= "bold": font, bold, italic, bolditalic</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:textalign= "center": EditText does not have this attribute, but TextView has</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:textcolorhighlight= "#cccccc": The background of the selected text, the default is blue</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:textcolorhint= "#ffff00": Sets the color of the message text, which is grayed out by default</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:textscalex= "1.5": Control the spacing between words and words</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:typeface= "monospace": typeface, normal, sans, serif, monospace</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:background= "@null": space background, not here, refers to transparent</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:layout_weight= "1": weights are useful when controlling the size of the control display.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">android:textappearance= "? android:attr/textappearancelargeinverse": text appearance, here refers to the system comes with a look,? Indicates whether the system has this appearance, otherwise the default appearance is Used.</p></p><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;"><p style="color:#494949;font-family:simsun, Arial, Helvetica, sans-serif;font-size:14px;background-color:#FFFFFF;">Still have questions? We have a chatter! QQ Group: 362057824</p></p><p><p>Android developer needs to know EditText attribute parsing</p></p></span>

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.