Multiple pages at the same time on a ViewPager

前端 未结 8 1447
执念已碎
执念已碎 2020-12-07 09:58

Is there a possibility to display two pages at the same time, when using a ViewPager? I\'m not looking for an edge effect, but rather for two full

8条回答
  •  猫巷女王i
    2020-12-07 10:47

    You can solve this problem by using getPageWidth in PagerAdapter class.

    Be sure about whether your JAR is up-to-date.Since previously ViewPager was not supporting multiple pages at the same time.

    public float getPageWidth(){

    return 0.4f;(You can choose it .For full screen per page you should give 1f) }

提交回复
热议问题