mikepenz/FastAdapter

Weird behavior on scroll with expandable

Closed this issue · 2 comments

About this issue

When an expandable item's subitem is expanded when an user scrolls away, the sub item height randomly increases and as such there's an empty space in the subitem

Details

  •  Used library version: 5.7.0
  •  Used support library version
  •  Used gradle build tools version: 8.1.2
  •  Used tooling / Android Studio version: AGP 8.1.2
  •  Other used libraries, potential conflicting libraries

Checklist

Screenshots

  • Before scrolling:
image
  • After
image

(item actually continues below bottom nav, not shown there)

Upon further investigation, setting height to match_parent on the sub item layout causes this issue. But, it only becomes an issue after scrolling, which is very strange and unexpected behavior.

This is not related to this library, whereas this library only focuses on the adapter and binding of views and not on general RecyclerView behavior.

Please refer to RecyclerView documentation to learn more about how it handles views and renders them as part of the RV.