ViewPager - get a partial view of the next page
You can try adding this to your PageAdapter:
public float getPageWidth(int position) {
if (position == 0 || position == 2) {
return 0.8f;
}
return 1f;
}
Try using a negative value for ViewPager.setPageMargin.
This function worked better than the answer marked as correct (for me anyway).
@Override
public float getPageWidth(int position) {
return 0.9f;
}
Just place it in your custom PagerAdapter
class.