Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

applyTransformation method not invoked in custom animation

Tags:

android

The applyTransformation method in my custom Animation is somethimes not being called after I started my animation with view.startAnimation(myAnimation). Is this a known issue?

like image 379
Andreas Ka Avatar asked Apr 02 '12 13:04

Andreas Ka


1 Answers

Try this.. worked well for me.

 view.startAnimation(myAnimation);
 View parent = (View)view.getParent();
 parent.invalidate();
like image 82
Zaartha Avatar answered Oct 19 '22 22:10

Zaartha