Android AnimatorSet animation + setStartDelay VS AnimatorListenener.onAnimationStart? -


i have question android animatorset object. i'm trying create textview dynamically , set it's visibility gone , make appear when animation starts after start delay. accomplish this, i've setup onanimationstart listener tell me when animation starting can set textview visible. add textview animatorset perform animations on alpha , translatey set setstartdelay value animation starts @ 2500 milliseconds. problem want textview become visible when animation starts @ 2500 milli mark, onanimationstart being called when animatorset.start() function being called, , not requested 2500 milliseconds after. resulting in textview's becoming visible before animation starts (after setstartdelay period). how overcome , textview objects go visible after setstartdelay period???? thank very much, best stackoverflow!!!! :) :) :)

i have been having same issue. animating 3 valueanimators in animatorset. doing "playtogether()" in set so:

set.playtogether(alpha,animscale,transy); set.start(); 

and found animation delay caused issues. instead tried following:

set.play(animscale); set.play(transy); set.play(alpha); set.start(); 

it seems work!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -