I am using a ViewPager
with a PageAdapter
(from the compatibility pack v4) to swipe among a horizontal list of boxes. The problem is that m
Yes, use the child width as half the page. Therefore, the swiping, which calls next child, will swipe half the page. Good Luck!
Edit: Checked your sketch again, try implementing 1st, 2nd, 3rd... as different childs. (I predict most of the solution while assuming it will react as GalleryView)
Code:
@Override
public float getPageWidth(int position) {
float nbPages = 2; // You could display partial pages using a float value
return (1 / nbPages);
}