Weird behavior on scroll with expandable
Closed this issue · 2 comments
androidacy-user commented
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
- Searched for similar issues
- Checked out the sample application
- Read the README
- Checked out the CHANGELOG
- Checked out the MIGRATION GUIDE
Screenshots
- Before scrolling:
- After
(item actually continues below bottom nav, not shown there)
androidacy-user commented
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
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.