I am trying to achieve this in a ViewPager
The first fragment (blue) is displayed and the beginning of the next fragment must be displayed as well, so the user under
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.
PagerAdapter