Chris Fillmore
10/26/2021, 4:52 PMLazyColumn
with around ~75 items, including `stickyHeader`s, inside a bottom sheet, and the performance of LazyListState.animateScrollToItem()
is noticeably bad. The animation is not smooth; it appears to just show a few frames before landing at the target index. Scrolling through the list manually otherwise works well enough.
The items in the list have some state associated with them (they can be “favourited” (via a heart icon) or “toggled” (via a switch). They have other components which are visible (or interactive) conditionally. So they are perhaps relatively complex.
Should I expect animateScrollToItem
to be performant in this case? I’m wondering if others have encountered a similar situation. Thanks for the feedback.Adam Powell
10/26/2021, 6:38 PMChris Fillmore
10/26/2021, 7:08 PMAdam Powell
10/27/2021, 2:04 PMChris Fillmore
10/27/2021, 2:09 PMminifyEnabled true
and using proguard-android.txt
instead of proguard-android-optimize.txt
?
https://www.reddit.com/r/androiddev/comments/n61qxh/jetpack_compose_lazycolumn_laggy/h8b9c8m/?utm_source=reddit&utm_medium=web2x&context=3
I did test these changes but did not observe a noticeable difference.Adam Powell
10/27/2021, 2:21 PMChris Fillmore
10/27/2021, 2:23 PMfabio.carballo
10/27/2021, 7:21 PM