Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Android Studio Build: Android Studio Ladybug Feature Drop | 2024.2.2 Patch 1
Kotlin version: 2.1.0
I have an item in a LazyColumn that contains a LazyRow, and within that LazyRow, I am using AndroidView as an item. When scrolling vertically, I expect the AndroidView inside the LazyRow to be reused when the LazyRow item is displayed again. However, the factory block of AndroidView is called each time, causing a new view instance to be created.
Is there a way to reuse AndroidView in this structure?
Steps to Reproduce or Code Sample to Reproduce:
1.
2. scroll LazyColumn
3. when LazyRow item(HorizontalListSlot) appears, TextView is created each time.