Fillbefore is the first frame of the animation at the end of the animation;
Fillafter refers to the end of the animation is the last frame in which the picture stays in this animation.
The Java code is set up as follows:
/***** at the end of the animation, stay at the last frame *********
Setfillafter (TRUE);
Setfillbefore (FALSE);
/***** animation at the end, stay on the first frame *********
Setfillafter (FALSE);
Setfillbefore (TRUE);
The XML settings are as follows:
/****** at the end of the animation, stay at the last frame **********
<set android:fillafter= "true" Android:fillbefore= "false" >
/****** animation at the end, stay on the first frame **********
<set android:fillafter= "false" android:fillbefore= "true" >
Ps:xml settings in the scale label are not valid, note that the set label
Comments
2 floor JAYAAAIII 2012-03-15 Use these two attributes before you set android:fillenabled= "true" to have the effect 1 floor tonyzzp 2011-10-26 Reference I wrote in set, also don't use AH.
Pro-Test:
Stop at the last frame: three lines below to set
Final Animation Mgridviewanim = Animationutils.loadanimation (this, Enteranim? R.anim.item_anim_in:r.anim.item_anim_out);
Mgridviewanim.setfillenabled (TRUE);
Mgridviewanim.setfillafter (TRUE);
Mgridviewanim.setfillbefore (FALSE);
Mgridviewanim.setduration (3000);
Android Animations Fillafter and Fillbefore