fillBefore and fillAfter attributes don’t work for LayoutAnimations

When you create layoutAnimations and you set the fillBefore or fillAfter in the animation sets referenced by the layoutAnimation the xml attributes of dont work. You have to set them through code.

 //doesn't work!

You have to set through code:

LayoutAnimationController layoutAnim = AnimationUtils
				.loadLayoutAnimation(this, R.anim.landingpage_right_anim_out);

Animation anim = layouAnim.getAnimation();

Leave a Reply

Your email address will not be published. Required fields are marked *