Android Textview Common effects

Source: Internet
Author: User

1: The effect of the marquee

Android:singleline= "true" android:ellipsize= "marquee" android:focusableintouchmode= "true" android:focusable= "true "Android:marqueerepeatlimit=" Marquee_forever "

    • Android:singleline=true indicates that using a single line of text, the multiline text does not matter the use of marquee effect.
    • android: Marqueerepeatlimit, sets the number of merry scrolling.
    • android:ellipsize, Set the text too long how to cut off the text, you can have none, Start,middle, end, if you use the merry effect is set to marquee.
    • android:focusable, The default behavior of Android is that the merry effect is displayed when the control gains focus

2: Effect beyond a few lines of point:
Android:maxlines= "2" android:ellipsize= "End"


3: Effect of Auto Link:
  android:autolink= "Phone|email|map|web|all"



2: Effect beyond a few lines of point: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.