mikepenz / FastAdapter

The bullet proof, fast and easy to use adapter library, which minimizes developing time to a fraction...
https://mikepenz.dev
Apache License 2.0
3.84k stars 494 forks source link

Weird behavior on scroll with expandable #1051

Closed androidacy-user closed 11 months ago

androidacy-user commented 11 months ago

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

Checklist

Screenshots

image image

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

androidacy-user commented 11 months ago

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.

mikepenz commented 11 months ago

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.