Common attributes of TextView controls in android software development, androidtextview

Source: Internet
Author: User

Common attributes of TextView controls in android software development, androidtextview
TextView control text property, set the displayed text textColor: Set the text color textSize: Set the text font size autoLink: Set the text to phone, URL Connection, etc. when displayed as a clickable link cursorVisible: set the cursor to show or hide. The default value is show drawableTop: Output A drawable, drawableLeft, drawableBottom, drawableRight, and drawablePadding above to set the single row display, whether to use ellipsis instead of ellipsize: ellipsis (start at the beginning, end at the end, and middle in the middle) gravity: the position of the text when a line on the screen does not show the complete text, if it is set to center, the text will be displayed in the center. maxLength: sets the length of the displayed text. lines will not be displayed if the content is exceeded. Set the number of lines of the text and set two lines to display two lines, even if there is no data in the second row textColorHighlight: Set the background color of the selected text to Blue textstyle by default: Set the font, you can set one or more, separated by "|" height: set text field height width: set text field width background: background

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.