Reputation: 73
I've been looking for some way to change activities by swiping the finger , without using tabs. I want to animate the whole screen when the swipe starts, including the action bar and its icons. Just like the Snapchat works, you can go to the others screens just by swiping right or left. There's a lot of question about this but any one could help, I know it's possible because of Snapchat, how can I do it?
Thank you.
Upvotes: 1
Views: 1681
Reputation: 61
you can user fragment's viewPager along side with appropriate transformation , I guess fade is the right one, you can find plenty of transformation here
github.com/ToxicBakery/ViewPagerTransforms
.
Upvotes: 0
Reputation: 50538
You need to override overridePendingTransition (int enterAnim, int exitAnim)
where you will pass animation resource identifiers.
As of Jelly Bean
you can use ActivityOptions
to perform transitions as you would do with overridePendingTransition()
method. Or use ActivityOptionsCompat
Upvotes: 1