Skip to content

Commit 8290e09

Browse files
committed
docs: add visual header explaining nested scrolling in LazyColumn
Add a visual header to each map card in MapsInLazyColumnActivity to explicitly demonstrate how the map interaction disables the list's scrolling. This provides a clear, in-app reference for developers facing issues with nested scrolling in LazyColumn. Fixes #14
1 parent 8994e12 commit 8290e09

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

maps-app/src/main/java/com/google/maps/android/compose/MapsInLazyColumnActivity.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ private fun MapCard(
289289
)
290290
}
291291

292+
Column(
293+
modifier = Modifier.align(Alignment.TopStart)
294+
) {
295+
TextWithBackground(
296+
"Panning this map disables list scroll",
297+
fontWeight = FontWeight.Bold
298+
)
299+
}
300+
292301
Column(
293302
modifier = Modifier.align(Alignment.BottomStart)
294303
) {

0 commit comments

Comments
 (0)