Fixed
Status Update
Comments
an...@google.com <an...@google.com>
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com> #2
Same bug here.
I have a LazyVerticalGrid composable with around 100 elements (2 columns) and the scroll is already very laggy. With a SmallAppBar and a scrollbehavior, it is now very very laggy.
I have a LazyVerticalGrid composable with around 100 elements (2 columns) and the scroll is already very laggy. With a SmallAppBar and a scrollbehavior, it is now very very laggy.
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #3
Is this a LazyColumn
/LazyVerticalGrid
performance issue?
We've ported the behavior to material
(not material3
) and whenever LazyColumn
's size and position were being adjusted during a scroll, the scrolling was laggy.
We've also tried to make LazyColumn
fill the whole screen and adjust its contentPadding
instead, but we got the same result. The scrolling was laggy while contentPadding
was being adjusted.
Once the bar is collapsed, the performance seems okay again.
We use ExitUntilCollapsedScrollBehavior
.
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #4
Are you testing on a debug or a release version of your APK?
pr...@google.com <pr...@google.com> #5
We tried both. It's a bit better in release version but not good enough for production use.
We tested on physical Pixel 3a with API 32.
Description
Jetpack Compose version:
Jetpack Compose component(s) used: OutlinedTextField
Android Studio Build: Koala
Kotlin version:
Steps to Reproduce or Code Sample to Reproduce:
Create a simple Composable function containing an OutlinedTextField with a fixed height constraint (e.g., using
Modifier.height(42.5.dp)
)Run the app on an emulator.
Observe that the OutlinedTextField initially displays with the correct fixed height.
Tap on the OutlinedTextField to bring it into focus.
Notice that the height of the OutlinedTextField shrinks unexpectedly, despite the fixed height constraint.
Code
Stack trace (if applicable):