I have been developing an Android app for a few months now and started testing on android 4.0. I just noticed that they changed the default transition between screens isn't that slide old off new on transition but instead some kind of popup the new from background like in iPhone.
Does anyone have any more info on the transition, is it configurable? If so where is it in the API I couldn't seem to find it.
Use this to control the screen transition in android:
overridePendingTransition
startActivity(intent);
onBackPressed()
,startActivity()
, andfinish()
on any activities that you wish to in control with.Animating slide in/out:
Create following
xml
file in res/anim:slide_in_left.xml:
slide_in_right.xml:
slide_out_left.xml:
slide_out_right.xml:
The code snippet to slide from A->B: