[Android] mobile guard custom scroll control
•
Android
Textview control sets single line display Android: singleline = "true"
Set the starting position of textview, display ellipsis, Android: ellipsize = "start"
Set scroll properties, Android: ellipsize = "marquee"
The scrolling effect is called only when the control has focus
Create a new UI package
Create a textview that inherits the system of focusedtextview
Rewrite construction method
Rewriting the isfoused () method and returning true can make it have focus. In fact, it has no focus, but deceives the Android system
Copy the full path of this class, enter the layout file, and replace the original textview
java:
Layout:
effect
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码