textView marquee

旧巷老猫 提交于 2019-12-03 19:42:30

What I got from your question is, you want to show a scrolling marquee effect in TextView? If I am right, do the following.

Set android:ellipsize="marquee" in TextView element in your layout file (XML). Then, in your Activity's onCreate() method, add the line textView.setSelected(true);.

Note: Replace the name textView with the name of your TextView.

Revert back for any query.

Nikki

You can set the properties android:ellipsize="marquee" of textview. and hope this link would help you out if on using this property still not working: Ellipsize not working for textView inside custom listView

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!