Assigned
Status Update
Comments
lo...@gmail.com <lo...@gmail.com> #2
Automatic regression verification started for measurement:
ChromiumPerf/android-pixel6-perf/system_health.memory_mobile/memory:chrome:all_processes:reported_by_chrome:malloc:max_committed_size_avg/browse_news
Verification workflow id: projects/62121018386/locations/us-central1/workflows/sandwich-verification-workflow-prod/executions/f430dab5-4642-48dd-a3d6-a50904c1d68e
ChromiumPerf/android-pixel6-perf/system_health.memory_mobile/memory:chrome:all_processes:reported_by_chrome:malloc:max_committed_size_avg/browse_news
Verification workflow id: projects/62121018386/locations/us-central1/workflows/sandwich-verification-workflow-prod/executions/f430dab5-4642-48dd-a3d6-a50904c1d68e
Description
I have a question regarding nested scrolling interop when a
ComposeView
(with aLazyColumn
) is nested inside aRecyclerView
. I am working on a project across different teams/subprojects and can not simply convert theRecyclerView
to Compose or theLazyColumn
back to aRecyclerView
but need to display the Compose content in the existing list.I have put together a minimal example to illustrate what I want to achieve:
As you can see in the attached video, the nested scrolling is not working as intended (I would expect the
LazyColumn
to scroll to the end). The innerLazyColumn
only got the scroll event once in my example, sometimes it works multiple times, sometimes not at all. Is this a supported use case?I already tried/read a lot regarding
rememberNestedScrollInteropConnection
,ViewCompat.setNestedScrollingEnabled
and other approaches likeCoordinatorLayout
(which I cannot use as we need more dynamic elements before and after the Compose content) but nothing worked as expected.The target state is that the
RecyclerView
scrolls down until theLazyColumn
is completely visible in the viewport, then theLazyColumn
scrolls to the bottom and if it reached the end, theRecyclerView
continues scrolling. The same on the way up of course. In the end, it should look like all items would be in theRecyclerView
.Jetpack Compose version: 1.7.5
Jetpack Compose component(s) used:
androidx.compose.ui.platform.ComposeView
,androidx.compose.foundation.lazy.LazyColumn
Android Studio Build: Android Studio Ladybug | 2024.2.1 Patch 3
Kotlin version: 2.0.20
Steps to Reproduce or Code Sample to Reproduce: