Question

I want to make a movement between my activity when I swipe the page. While I swipe the page, the pages have to come with my hand movement.

I have detected the swipe direction using SimpleOnGestureListener and changed the activity on intent. But i'm not getting exactly what I want. I need that effect.

Was it helpful?

Solution

While I swipe the page, the pages have to come with my hand movement.

That's a ViewPager, then you use PagerAdapter or FragmentPagerAdapter or FragmentStatePagerAdapter (depending on specific needs, read the doc) to provide the content of each "page".

OTHER TIPS

you can implement left to right slide animation like one described here. Android Left to Right slide animation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top