Assigned
Status Update
Comments
ha...@google.com <ha...@google.com>
ma...@google.com <ma...@google.com>
an...@google.com <an...@google.com>
ho...@google.com <ho...@google.com>
eg...@gmail.com <eg...@gmail.com> #2
Can you attach / share a project that reproduces the issue?
ha...@gmail.com <ha...@gmail.com> #3
Now i sure this is viewpager2's bug.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
Description
Jetpack Compose version: 1.2.1
Jetpack Compose component(s) used: material, constraintlayout
Android Studio Build: Android Studio Chipmunk | 2021.2.1 Patch 2
Kotlin version: 1.7.10
I've run into performance issues with LazyColumn that has many items that are ConstraintLayout. Depending on complexity of item layout and speed of scrolling, the framerate noticeably drops on fast scrolling or even many frames in a row are dropped.
minifyEnabled
andproguard-android-optimize.txt
✅Here I moved the problematic code to a sample project (so don't judge the design pls 🙈), so you can build / play with yourself:https://github.com/haluzpav/LazyColumnStutter
The problematic item layout:https://github.com/haluzpav/LazyColumnStutter/blob/minify_optimize_complex_item/app/src/main/java/com/lazycolumnstutter/ForecastItem.kt
You can find videos in attachments, with device names and Android version in file names. The shown performance problems happen also when not recording the screen. Curiously enough, performance in emulator (API 32) is fine. 🤨
I'm looking for suggestions how to improve this on my side.
Note: When I partially re-wrote the item layout to simple code ) the performance is much better, although it still occasionally drops frames on real devices.
Row
s/Column
s (