I have three activities whose launch modes are single instance.
Using onfling(), I swing them left and right.
The problem is when I swipe right to
Use this xml in res/anim/
This is for left to right animation:
This is for right to left animation:
In your coding use intent like for left to right:
this.overridePendingTransition(R.anim.animation_enter,
R.anim.animation_leave);
In your coding use intent like for right to left
this.overridePendingTransition(R.anim.animation_leave,
R.anim.animation_enter);