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
(3) I scroll up the 'CUPCACE', then change the tab to 'DONUT' ,because the 'DONUT' can't scroll, it will be like this below:
![Uploading image.png…]()
This really confuse me a lot, because this situation happens a lot .
Is there some way to avoid this?
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
(3) I scroll up the 'CUPCACE', then change the tab to 'DONUT' ,because the 'DONUT' can't scroll, it will be like this below:
![Uploading image.png…]()
This really confuse me a lot, because this situation happens a lot . Is there some way to avoid this?