Android TextView and androidtextview

Source: Internet
Author: User

Android TextView and androidtextview

TextView is a very useful component that can be defined using XML or the Method in program code. Android: autoLink: determines whether the text is displayed as a clickable link when the text is URL link, email, phone number, or map. Optional value (none/web/email/phone/map/all) android: autoText if set, the spelling of the input value is automatically corrected. Android: bufferType specifies the text category obtained by getText. The editable option is similar to the append character of StringBuilder. That is to say, after getText, you can use the append method to set the text content. Spannable can be a given character. Android: capitalize. Android: cursorVisible: sets the cursor to show/hide, which is displayed by default. Android: digits sets the characters that can be entered. For example, "1234567890. +-‐‐‐*/% \ n ()" android: drawableBottom outputs a drawable under text. If a color is specified, the background of the text is set to this color, and the latter is overwritten with the background. Android: drawableLeft outputs a drawable on the left of text. Android: drawableRight outputs a drawable on the Right of text. Android: drawableTop outputs a drawable on the top of the text. Android: sets whether the editable can be edited. Android: editorExtras sets additional text input data. Android: ellipsize: Set how to display the control when the text is too long. You can set the following values: "start" -- The ellipsis is displayed at the beginning; "end" -- The ellipsis is displayed at the end; and "middle" -- ­-The ellipsis is displayed in the middle; "marquee"-displayed as a marquee (horizontal movement of the animation ). Android: freezesText sets the content of the saved text and the position of the cursor. Android: gravity sets the text position. For example, if it is set to "center", the text is displayed in the center. Android: Text prompt information displayed when the hint Text is empty. You can use textColorHint to set the color of the prompt information. This attribute is used in EditView, but it can also be used here. Android: imeOptions additional function, set the IME action in the lower right corner to the action related to the edit box. For example, a "finish" is displayed in the lower right corner of actionDone, without setting a carriage return symbol by default. Android: imeActionId sets the IME action ID. Android: imeActionLabel: sets the IME action label. Android: includeFontPadding sets whether the text contains additional white space at the top and bottom. The default value is true. Android: inputMethod specifies the Input Method for text and requires a fully qualified name (complete package name ). Android: inputType sets the text type to help the input method display the appropriate keyboard type. Android: marqueeRepeatLimit: When ellipsize specifies marquee, it sets the number of repeated scrolling times. When it is set to marquee_forever, it indicates unlimited times.

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.