Android Application Development-running lantern Effect

Source: Internet
Author: User

XML layout attributes

Android: ellipsize:Set how to display the control when the text is too long. You can set the following values: "Start" -- ellipsis () at the beginning, "end" -- ellipsis () at the end, and "Middle" -- ellipsis () in the middle;

Marquee-- Display as a running horse lamp (horizontal movement of the animation)
Android: marqueerepeatlimitWhen ellipsize specifies marquee, it sets the number of repeated scrolling times. When it is set to marquee_forever, it indicates unlimited times.
Android: focusableintouchmode: Whether to obtain the focus in touch mode.
Android: focusableWhether the control can obtain the focus

 

Example:

Android: Id = "@ + ID/TV"
Android: autolink = "all"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: singleline = "true" be sure to set this attribute
Android: textsize = "20sp"
Android: textcolor = "#00ff00"
Android: focusable = "true"
Android: ellipsize = "marquee"
Android: marqueerepeatlimit = "marquee_forever"
Android: focusableintouchmode = "true"
Android: TEXT = "People's Republic of China vvvvvvv"
/>

Related Article

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.