flexbox-layout icon indicating copy to clipboard operation
flexbox-layout copied to clipboard

Recyclerview jumps to the first item while scrolling

Open komar-tgm opened this issue 3 years ago • 6 comments

  • [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'

komar-tgm avatar Feb 03 '21 19:02 komar-tgm

Facing the same issue. Have you found any solution for the above issue @komar-tgm?

Chamana avatar Jan 10 '22 04:01 Chamana

any. help here ? same issue @Chamana @komar-tgm

Makwana619 avatar Apr 21 '22 12:04 Makwana619

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.

Chamana avatar May 19 '22 12:05 Chamana

same issue too(

onishchenko-belkacar avatar Aug 28 '22 12:08 onishchenko-belkacar

Same issue in 3.0.0

FranciellyM avatar Jun 13 '23 13:06 FranciellyM