Swipe half page in a ViewPager (from compatibility pack)

后端 未结 2 517
遥遥无期
遥遥无期 2020-12-15 01:01

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

2条回答
  •  我在风中等你
    2020-12-15 01:38

    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)

提交回复
热议问题