I am using an AdaptorViewFlipper.
Its methods setInAnimation()
and setOutAnimation()
expect the resource ID of a XML with an ObjectAnimator
.
I want the animation to scale & fade the view simultaneously.
I define this scale_in_animator.xml
(for the sake of example I only post the In animation, the Out one is just the inverse)
<?xml version="1.0" encoding="utf-8"?>
<objectAnimator
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:propertyName="transitionScaleIn"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
And the view returned by the AdaptorViewFlipper
's adapter includes this function:
public void setTransitionScaleIn(float value) {
setScaleX(2-value);
setScaleY(2-value);
setAlpha(value);
}
However, nothing happens. setTransitionScaleIn
is not ever called.
Am I doing something wrong?