Aneesh
Aneesh

Reputation: 283

Custom activity-activity transition

I'm developing an android application where i need custom animation for transition between activities which must look something like this

I checked out this but not able figure out how to solve my problem

Thanks in advance to any solutions.

Upvotes: 0

Views: 69

Answers (2)

marko.petrovic
marko.petrovic

Reputation: 164

I don't think you can solve it by ViewPager as it won't provide you possibility to actually change Activities. I guess you need to call

overridePendingTransition(int enterAnimation, int exitAnimation)

after startActivity and finish methods, and where you define these two animations within xml files in /res/anim folder.

I posted full snippets on my blog so check it, hope it helps a bit - Custom Animation while switching between Activities

Upvotes: 1

Mark Pazon
Mark Pazon

Reputation: 6205

Looking at the website you just referenced it seems similar to a ViewPager. ViewPager lets you flip from one page to another (this happens on the same activity by the way).

Upvotes: 0

Related Questions