Animation while switching Activity in Android?
You can set your animation when you go to another activity using this
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
Also you can get same animation if you come back from last activity to previous activity by overriding method
@Override
public void onBackPressed() {
super.onBackPressed();
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}
Yes it is possible. check out this question. You have to define animations in anim folder than you can overide current animation using
overridePendingTransition( R.anim.slide_in_up, R.anim.slide_out_up );