I want to animate an activity while starting another activity. The animation i am trying to do flip animation.
I tried ActivityOptions and overridePendingTransition with objectanimtor. I think i am doing wrong ,objectanimator can not be used with these above methods.
Is there any way to animate activity that work for api level 8 also, please also explain the reason why objecanimator not working with ActivityOptions and overridePendingTransition
Below the sample is attached
<set xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Before rotating, immediately set the alpha to 0. -->
<objectAnimator
android:valueFrom="1.0"
android:valueTo="0.0"
android:propertyName="alpha"
android:duration="0" />
<!-- Rotate. -->
<objectAnimator
android:valueFrom="180"
android:valueTo="0"
android:propertyName="rotationY"
android:interpolator="@android:interpolator/accelerate_decelerate"
android:duration="@integer/card_flip_time_full" />
<!-- Half-way through the rotation (see startOffset), set the alpha to 1. -->
<`objectAnimator`
android:valueFrom="0.0"
android:valueTo="1.0"
android:propertyName="alpha"
android:startOffset="@integer/card_flip_time_half"
android:duration="1" />
</set>
`enter code here`and i used this `xml` like this
`overridePendingTransition`(`R.anim.card`_flip_right_in,`R.anim.card`_flip_right_out);