Android - How to ViewPager with multiple childs with different heights

纵然是瞬间 提交于 2019-12-04 19:02:20

Do one thing just try to change the height of viewpager control every time you call new fragment in your FragmentActivity

@Override
    public float getPageWidth(int position) {
    return 0.98f; //(0-1] this values specifies how much space a page will occupy on screen
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!