Android: ViewPager gets stuck in between views

后端 未结 8 1280
天命终不由人
天命终不由人 2021-02-02 11:30

I have a ViewPager which swipes between Fragments. I\'m using a FragmentStatePagerAdapter to feed the Fragments to the ViewPager. If the user swipes left at a normal pace, and t

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-02 12:17

    For now, I am thinking there is an issue with the width of the layout. So far I only see one suspect, there is an unknown attribute

    app:aspectRatio="@integer/photo_ratio_height_over_width" 
    

    in UI element ...

    Apparently there is a custom attribute in library/code CustomAsShitViewPager, perhaps post the code related to aspectRatio, at least.

提交回复
热议问题