Create a container (layout) to place your ViewPager. Set setClipChildren (false) in both the container and the ViewPager. Set the width of the ViewPager to the / 2 container if you want to show 2 whole pages (1/2 on the left, 1 center, 1/2 on the right)
source share