Maraumax
Maraumax

Reputation: 704

Android activity transition effect

I want to make a transition in my android from one activity to another like this:

image 1:

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

Answers (2)

devconsole
devconsole

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

Mike D
Mike D

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

Related Questions