Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ry...@google.com <ry...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 28a2bd4b8a9b218e5b3fe0c5e5e493f2bede17d6
Author: Ryan Mentley <ryanmentley@google.com>
Date: Thu Sep 03 19:01:24 2020
Add LazyListState
Relnote: """Add a new LazyListState class.
This allows for observation and control of the scroll position of
LazyRow and LazyColumn components. Instances can be created using
rememberLazyListState() and passed into the state parameter of the
component. Currently, the first visible item and offsets can be
observed in this initial version."""
Fixes: 159307669
Test: Added new tests
Change-Id: Ic7cb72444d41ccb6add635ba0873bb0e9222cf15
M compose/foundation/foundation/api/current.txt
M compose/foundation/foundation/api/public_plus_experimental_current.txt
M compose/foundation/foundation/api/restricted_current.txt
M compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/ListDemos.kt
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyColumnForTest.kt
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyRowForTest.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyDsl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyFor.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyGrid.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListState.kt
https://android-review.googlesource.com/1393622
Branch: androidx-master-dev
commit 28a2bd4b8a9b218e5b3fe0c5e5e493f2bede17d6
Author: Ryan Mentley <ryanmentley@google.com>
Date: Thu Sep 03 19:01:24 2020
Add LazyListState
Relnote: """Add a new LazyListState class.
This allows for observation and control of the scroll position of
LazyRow and LazyColumn components. Instances can be created using
rememberLazyListState() and passed into the state parameter of the
component. Currently, the first visible item and offsets can be
observed in this initial version."""
Fixes: 159307669
Test: Added new tests
Change-Id: Ic7cb72444d41ccb6add635ba0873bb0e9222cf15
M compose/foundation/foundation/api/current.txt
M compose/foundation/foundation/api/public_plus_experimental_current.txt
M compose/foundation/foundation/api/restricted_current.txt
M compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/ListDemos.kt
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyColumnForTest.kt
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyRowForTest.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyDsl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyFor.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyGrid.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListState.kt
Description
I would like to be able to coordinate my UI with a
LazyColumnItem
's scroll position e.g. to scroll out anAppBar
or change it's elevation.