i have made the following animation xml file in my android project:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator = "true"
android:interpolator="@android:anim/linear_interpolator">
<scale
android:fromXScale = "1.0"
android:toXScale = "0.0"
android:pivotX="50%"
android:pivotY="50%"
android:duration="40000">
</scale>
</set>
what this is basically doing is making a view dissappear starting from its center.
Now in my code i am doing the following to start the animation:
overridePendingTransition (0,R.anim,myanimation);
but nothing is happening.
what am i doing wrong?
thank you in advance.
try this: