垂直Maquee的TextView [英] Vertical Maquee TextView
问题描述
从prevois后,<一个href=\"http://stackoverflow.com/questions/1827751/android-is-there-a-way-to-make-ellipsizemarquee-always-scroll\">Is有没有办法让ellipsize =金字招牌一直滚动?我有创建垂直maquee TextView的。但我的问题是我怎么可以容纳动漫周边5秒时,它移动到一个点,比简历和完成动画。
From the prevois post, Is there a way to make ellipsize="marquee" always scroll? I have create a vertical maquee textview. But my question is how can I hold the animation around 5 sec when it moving to a point and than resume and finish the animation.
例如:
mAnimation2 = new TranslateAnimation(0f, 0f, 20f, -20f);
mAnimation2.setDuration(5000);
mAnimation2.setStartOffset(5000);
mAnimation2.setRepeatMode(Animation.RESTART);
TextView tv = (TextView)findViewById(R.id.text); tv.setAnimation(mAnimation2);
我有定义上述动画并将其设置为TextView的。我怎样才能停止动画5秒时的TextView在坐标(0,0),比延续了动画?
I have define the above animation and set it to TextView. How can I stop the animation 5 sec when the textview was at coordinate (0,0) and than continues the animation?
推荐答案
您可以借此MarqueeView实施和定制它,你的愿望:的 http://b.ivity.asia/2010/12/01/extended-marquee-in-android/
You could take this MarqueeView implementation and customize it up to your desire: http://b.ivity.asia/2010/12/01/extended-marquee-in-android/
这篇关于垂直Maquee的TextView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!