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();
精彩评论