Please have a look at the getPageWidth
Method in the corresponding PagerAdapter
. Override it and return e.g. 0.8f
to have all child pages span only 80% of the ViewPager’s width.
More info:
http://developer.android.com/reference/android/support/v4/view/PagerAdapter.html#getPageWidth(int)