Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit f4062ed21c898d310859b1f2d00eed9ba4c8cdda
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Wed May 18 20:27:26 2022
Add IntervalList api
Reshaped the api of previously internal IntervalList and MutableIntervalList so it is more clean and does not expose the internal binary search implementation on the users. Exposed it as a public experimental api so the external implementations of LazyLayout can use it.
Relnote: Added new experimental IntervalList and MutableIntervalList. It allows to represent some list of values via multiple intervals. It will be useful when you want to define your own dsl similar to the one used by LazyColumn where list items can be defined via multiple item/items calls.
Fixes: 228580728
Test: more tests in MutableIntervalListTest
Change-Id: I2d05e91646068eab522514024b483d88d77be309
M compose/foundation/foundation/api/public_plus_experimental_1.2.0-beta03.txt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridItemProviderImpl.kt
M compose/foundation/foundation/api/public_plus_experimental_current.txt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScopeImpl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListScopeImpl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/layout/IntervalList.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListItemProviderImpl.kt
M compose/foundation/foundation/src/test/kotlin/androidx/compose/foundation/lazy/MutableIntervalListTest.kt
https://android-review.googlesource.com/2101216
Branch: androidx-main
commit f4062ed21c898d310859b1f2d00eed9ba4c8cdda
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Wed May 18 20:27:26 2022
Add IntervalList api
Reshaped the api of previously internal IntervalList and MutableIntervalList so it is more clean and does not expose the internal binary search implementation on the users. Exposed it as a public experimental api so the external implementations of LazyLayout can use it.
Relnote: Added new experimental IntervalList and MutableIntervalList. It allows to represent some list of values via multiple intervals. It will be useful when you want to define your own dsl similar to the one used by LazyColumn where list items can be defined via multiple item/items calls.
Fixes: 228580728
Test: more tests in MutableIntervalListTest
Change-Id: I2d05e91646068eab522514024b483d88d77be309
M compose/foundation/foundation/api/public_plus_experimental_1.2.0-beta03.txt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridItemProviderImpl.kt
M compose/foundation/foundation/api/public_plus_experimental_current.txt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScopeImpl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListScopeImpl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/layout/IntervalList.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListItemProviderImpl.kt
M compose/foundation/foundation/src/test/kotlin/androidx/compose/foundation/lazy/MutableIntervalListTest.kt
Description