Basic properties for Android text boxes and edit boxes

Source: Internet
Author: User

EditText Editable text Box
Textview text box android:min/maxlines min/large number of lines
Android:singleline= "true" setting does not break line
Android:setellipsize to omit the class capacity over length
Android:textsize= "20dip" Font size
Android:textcolor = "#ff8c00"
Android:maxlength= "10" Maximum length is 10
Android:gravity= Center Control content
Android:layout_gravity= the center control itself
Android:hint: Prompt to enter content
android:textscalex= "1.5" to set word spacing
Android:textstyle The format of the digital font bold bold Italic italic normal
android:digits= "123" setting can enter those characters, here is only 123
android:scrollbars= "Vertical" vertical scrolling
Android:cursorvisible= "false" to hide the cursor
Android:inputtype= "Number" to set the content type, password, numbers ... in the text box.

Basic properties for Android text boxes and edit boxes

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.