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.

![enter image description here](https://i.stack.imgur.com/ddm1j.jpg)

I tried using `ViewPager` with negative page margin as suggested [here](https://stackoverflow.com/questions/7725045/android-viewpager-with-previous-and-next-pages-visible) 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 !