Application example of Android TextView Marquee
Application example of Android TextView Marquee
Pro test possible. Directly on the code.
XML code
explain:
The following lines are required in XML:
Finally, don't forget to call the setselected (true) method of textview in Java.
Special attention:
At present, it is found that the writing of Android: singleline = "true" has been abandoned, but at present, marquee can only be written in this way to take effect. If you change to the latest writing Android: maxlines = "1", you will find that marquee can't scroll. Do not know why? If anyone knows the reason or has a better way of writing,
The above is an example of Android textview marquee. If you have any questions, please leave a message or go to the community of this site for communication and discussion. Thank you for reading. I hope it can help you. Thank you for your support to this site!