在Crouton库滚动文字 [英] Scrolling text in Crouton Library

查看:160
本文介绍了在Crouton库滚动文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该crouton库可以发现 Github上
我的问题是,如果有可能如何在Crouton水平滚动显示的文本。在一个TextView它可以这样做:

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" 

但在Crouton是,这也可能吗?
我AP preciate每个帮助/答案!

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

推荐答案

您可以通过提供一个自定义视图Crouton Crouton.show(活动,查看)和它的等价 Crouton.make(...)方法。

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.

这篇关于在Crouton库滚动文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆