Scrolling text in Crouton Library

早过忘川 提交于 2019-12-10 10:15:30

问题


The crouton library can be found on Github And my question is if it's possible how to make the text displayed in the Crouton scrolling horizontally. In a TextView it can be done like this:

android:singleLine="true" 
android:ellipsize="marquee"
android:marqueeRepeatLimit ="marquee_forever"
android:scrollHorizontally="true"
android:focusable="true"
android:focusableInTouchMode="true" 

But is this also possible in a Crouton? I appreciate every help/answer!


回答1:


You can provide a custom View to Crouton via Crouton.show(Activity, View) and it's equivalent Crouton.make(...) methods.

You custom View can also be a View that can marquee forever.



来源:https://stackoverflow.com/questions/14967963/scrolling-text-in-crouton-library

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