Skip to content Skip to sidebar Skip to footer

Custom Scaleanimation / Applytransformation Is Not Called

This is my custom ScaleAnimation: public class MyScaler extends ScaleAnimation { private static final String TAG = 'myScaler'; private View mView; private LayoutPara

Solution 1:

I had the same issue but invalidate didn't work in my case. This solved my issue:

dp.requestLayout();

Solution 2:

For those who calls to invalidate() and requestLayout() do not work, try

((View) view.getParent()).invalidate()

as described here: https://stackoverflow.com/a/15657563/752781

Solution 3:

Callig the invalidate() method on a visible View object just after the startAnimation(Animation) method helped me.

Post a Comment for "Custom Scaleanimation / Applytransformation Is Not Called"