ksoichiro / Android-ObservableScrollView

Android library to observe scroll events on scrollable views.
http://ksoichiro.github.io/Android-ObservableScrollView/
Apache License 2.0
9.65k stars 2.06k forks source link

A bug of FlexibleSpaceWithImageWithViewPagerTabActivity cause of scrollToPositionWithOffset doesn't work on some situation #246

Open jiansheliuxing opened 8 years ago

jiansheliuxing commented 8 years ago

There is a bug in FlexibleSpaceWithImageWithViewPagerTabActivity. This bug is caused by LinearLayoutManager's method scrollToPositionWithOffset(int position, int offset). Here is the bug. (1) I make NUM_OF_ITEMS to 10, when the cellphone is Nexus 5 (2) because the NUM_OF_ITEMS is 10, the 'CUPCACE' can scroll but 'DONUT' can't scroll image image (3) I scroll up the 'CUPCACE', then change the tab to 'DONUT' ,because the 'DONUT' can't scroll, it will be like this below: image ![Uploading image.png…]()

This really confuse me a lot, because this situation happens a lot . Is there some way to avoid this?