android - Animation get interrupted before finish -


what i'm trying achieve translation animation regard scrolling.

my relativelayout wrapped custom scrollview.

my onscrollchanged function follows:

@override public void onscrollchanged (scrollview who, int l, int t, int oldl, int oldt) {     if(t > oldt){         someview.animate.translationyby(-2f);    } else{         someview.animate.translationyby(2f);    } } 

problem animation canceled each time because other animation starts before previous finishes.

android doc: animations running on property canceled.

is there way around it?

thanks , big thumbs helper


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -