I want to create an animation transition in Android from one Activity to the next. But during the animation, there is a short blackout of a black background then displaying the animation of the next Activity I want to display.
I want hold the first Activity intact so the second Activity will animate and overlap the first Activity. How can I achieve this behaviour?
Here are my two current animation xml files, which aren't doing what i want to achieve:
hold.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<translate
android:duration="2000"
android:zAdjustment="bottom" />
</set>
enter.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<translate
android:duration="2000"
android:fromXDelta="90%"
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%"
android:zAdjustment="top" />
</set>
My Java-Code:
starter.overridePendingTransition(R.anim.enter,
R.anim.hold);
Thank you in advance, Pat