ViewPager setCurrentItem(pageId, true) does NOT smoothscroll

前端 未结 13 1151
予麋鹿
予麋鹿 2020-12-02 13:01

I am compiling on SDK 4.03, Samsung Infuse Android 2.2, Support Library for Android 4, and using ViewPager in my app, actual swipe works fine, but when I do



        
13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 13:40

    The ViewPager was changed a lot from revision 5 to 9. Some of those changes that might be related to your problem:

    • Bug fixes for user interface behavior in ViewPager (revision 5 and 6)
    • Fixed numerous bugs for ViewPager (revision 9)

    Giving that your code is supposed to work just fine, my best guess is that your support library is not up-to-date. Try updating the library if it isn't.

提交回复
热议问题