Android layout Modify basic common sense TextView properties

Source: Internet
Author: User

"Angel" Android layout modify basic Common sense TextView properties you need to master some of the properties when modifying the layout XML file.
The following are the attributes of TextView, the text:
Android:autolink whether the URL or email address is automatically linked;
Android:autotext Automatic detection error;
Android:buffertype determines the type of GetText () returned
Android:capitalize Specifying usage types
android:cursorvisible cursor is visible
Android:digits Digital Input
Android:drawablebottom content is displayed below the text
Android:drawableend content appears at the end of the text
Android:drawableleft content appears to the left of the text
Android:drawablepadding the gap between content and text
Android:drawableright content appears to the right of the text
Android:drawablestart content appears at the beginning of the text
Android:drawabletop content appears on top of text
Android:editable editing function, can use input method
Android:editorextras editing feature extension, user settings
Android:ellipsize How to display elliptical regions
Android:ems can be run on more systems
android:fontfamily font Style
Android:freezestext frozen at cursor position
Android:gravity the x and Y axes are adjusted when the text is less than the display range
Android:height Text pixel height
Android:hint when text is blank
Android:imeactionid Activating IME ID number
Android:imeactionlabel Activating IME Symbols
Android:imeoptions IME Operation
Android:includefontpadding enough space to accommodate font display
Android:inputmethod Specifying input methods
Android:inputtype Select Input Method
Android:linespacingextra Extra text Spacing
Android:linespacingmultiplier extra text spacing, multiplier
Android:lines Multi-line display
android:linksclickable Click link
Android:marqueerepeatlimit Marquee Repeat Limit
Android:maxems Maximum System Compatibility
Android:maxheight Maximum text height
Android:maxlength Maximum text length
Android:maxlines maximum number of lines of text
Android:maxwidth Maximum text length
Android:minems Minimum System Compatibility
Android:minheight min Text height
Android:minlines minimum number of lines of text
Android:minwidth Minimum text width
Android:numeric Support Digital input
Android:password text as password
Android:phonenumber Support Phone number input
Android:privateimeoptions Private input operation
Android:selectallonfocus Click Select All
Android:shadowcolor Shadow Color
ANDROID:SHADOWDX Shadow Horizontal Offset
Android:shadowdy Shadow Vertical Offset
Android:shadowradius Shadow Radius
Android:singleline Single-line display
Android:text display text
Android:textallcaps Text All uppercase
Android:textappearance basic text color, font, size, style
Android:textcolor text color
Android:textcolorhighlight Text Highlight Color
Android:textcolorhint text hint color
Android:textcolorlink Link text color
Android:textisselectable text can be selected
Android:textscalex Horizontal Scaling parameters
Android:textsize Text Size
Android:textstyle Text Style
Android:typeface text Font
Android:width Text width



Android layout Modify basic common sense TextView properties

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.