开发者

Android: How to find duration of Marquee textview scroll duration

开发者 https://www.devze.com 2023-03-14 13:32 出处:网络
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 complet

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

精彩评论

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