flexbox-layout
flexbox-layout copied to clipboard
Recyclerview jumps to the first item while scrolling
- [x] I have searched existing issues and confirmed this is not a duplicate
Issues and steps to reproduce
The Recyclerview jumps back to the starting item while or after scrolling
The Recyclerview uses a FlexBoxLayoutManager with: FlexDirection.ROW FlexWrap.NOWRAP JustifyContent.FLEX_START AlignItems.FLEX_END
(maybe when adapter.notifyDataSetChanged() is called, but why?)
Expected behavior
If I scroll the Recyclerview stays on that position and does not jump back to the start
Version of the flexbox library
'com.google.android:flexbox:2.0.1'
Facing the same issue. Have you found any solution for the above issue @komar-tgm?
Hi @Makwana619 This is happening whenever there is any view that updates data dynamically. For ex: We have a timer and every second the text view gets updated, it will scroll to first as it redraws the recycler view to adjust the height with the newly updated text. This is because setText() method internally calls onMeaure.
same issue too(
Same issue in 3.0.0