I'm designing a view with multiple pages. I want edges of previous and next pages to be show like below and implement a 2 finger swipe to switch between pages.
I tried using ViewPager
with negative page margin as suggested here but that only shows one of the edges on the screen, not both simultaneously.
Alternatively, is there any way i can position part of my view outside screen and then animate it giving it a ViewPager
type effect.
How should I go about it ? Thanks !
if someone still looking for solution, I had customized the ViewPage to achieve it without using negative margin, find a sample project here https://github.com/44kksharma/Android-ViewPager-Carousel-UI it should work in most cases but you can still define page margin with
mPager.setPageMargin(margin in pixel);