Reputation: 704
I want to make a transition in my android from one activity to another like this:
:
I try with overridePendingTransition()
but i think it's impossible. I also see ViewFlipper
but i can't use activity with it.
Upvotes: 0
Views: 2664
Reputation: 7915
ViewPager might be what you are looking for. It does not involve multiple activities though, i.e. you stay withing a single activity.
Upvotes: 2
Reputation: 4946
A ViewFipper
is not used to switch between Activities. To implement a custom transition, you would call overridePendingTransition(int enterAnim, int exitAnim)
in the new Activity's oncreate()
method. Both parameters would be a reference to an animation saved res/anim
folder (link).
Upvotes: 2