开发者

Android: How to find duration of Marquee textview scroll duration

I'm using a textview开发者_开发问答 in my app with marquee limit 1. After the first complete scrolling i want to update the textview content. For that i need to calculate the duration for one complete scrolling of textview. Is there any way to find the same. Please help me.

Thanks And Regards


use getAnimation().getDuration() to get marquee scroll duration Try with the following code.

textView = (TextView) findViewById(R.id.textview2);
long duration = textView.getAnimation().getDuration();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜