Android Textview common effects

Source: Internet
Author: User

Android Textview common effects

1: The effect of the horse Lamp

Android: singleLine = "true" android: ellipsize = "marquee" android: focusableInTouchMode = "true" android: focusable = "true" android: marqueeRepeatLimit = "marquee_forever"

  • Android: singleLine = true indicates that a single line of text is used. If multiple lines of text are used, the Marquee effect is not used.
  • Android: marqueeRepeatLimit, which is used to set the number of tumble times.
  • Android: ellipsize. It sets how to cut the text when the text is too long. The options include none, start, middle, and end. If you use the lantern, set it to marquee.
  • Android: focusable. The default behavior of Android is that the drive-down effect is displayed only when the control obtains the Focus.

  • 2: The effect is as follows:
    Android: maxLines = "2" android: ellipsize = "end"


    3: Effect of automatic link:
    Android: autoLink = "phone | email | map | web | all"



    2: The effect is as follows:Third-party

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.