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
Post a Comment