Fixed
Status Update
Comments
ae...@google.com <ae...@google.com>
mo...@google.com <mo...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit dce95f0a931da95ad38e24c94d3496241e0c1954
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Wed Jan 26 19:38:35 2022
Support content types in Lazy grids
Relnote: You can now specify the content type for the items of LazyVerticalGrid - item/items functions on LazyGridScope now accept such parameter. Providing such information helps item composition reusing logic to make it more efficiently and only reuse the content between the items of similar type.
Fixes: 215372836
Test: LazyGridSlotsReuseTest
Change-Id: I7b3550cf626b6ef6f65029b1e55465266bfacb18
M compose/foundation/foundation/api/public_plus_experimental_current.txt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyGrid.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridItemsProviderImpl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScopeImpl.kt
A compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/grid/LazyGridSlotsReuseTest.kt
https://android-review.googlesource.com/1960712
Branch: androidx-main
commit dce95f0a931da95ad38e24c94d3496241e0c1954
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Wed Jan 26 19:38:35 2022
Support content types in Lazy grids
Relnote: You can now specify the content type for the items of LazyVerticalGrid - item/items functions on LazyGridScope now accept such parameter. Providing such information helps item composition reusing logic to make it more efficiently and only reuse the content between the items of similar type.
Fixes: 215372836
Test: LazyGridSlotsReuseTest
Change-Id: I7b3550cf626b6ef6f65029b1e55465266bfacb18
M compose/foundation/foundation/api/public_plus_experimental_current.txt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyGrid.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridItemsProviderImpl.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScopeImpl.kt
A compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/grid/LazyGridSlotsReuseTest.kt
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit dae1d49459c9b0fc32ecde095b14aa3df61791b0
Author: George Mount <mount@google.com>
Date: Fri Jul 23 22:52:24 2021
Add DpSize
Fixes: 194219828
Customers need a DpSize structure.
RelNote: Added DpSize class
Test: new tests
Change-Id: I7abb129c8c18a3f77b68aec5c2060d2aad11a693
M compose/ui/ui-unit/api/current.txt
M compose/ui/ui-unit/api/public_plus_experimental_current.txt
M compose/ui/ui-unit/api/restricted_current.txt
M compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/Density.kt
M compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/Dp.kt
A compose/ui/ui-unit/src/test/kotlin/androidx/compose/ui/unit/DensityTest.kt
A compose/ui/ui-unit/src/test/kotlin/androidx/compose/ui/unit/DpSizeTest.kt
https://android-review.googlesource.com/1777126
Branch: androidx-main
commit dae1d49459c9b0fc32ecde095b14aa3df61791b0
Author: George Mount <mount@google.com>
Date: Fri Jul 23 22:52:24 2021
Add DpSize
Fixes: 194219828
Customers need a DpSize structure.
RelNote: Added DpSize class
Test: new tests
Change-Id: I7abb129c8c18a3f77b68aec5c2060d2aad11a693
M compose/ui/ui-unit/api/current.txt
M compose/ui/ui-unit/api/public_plus_experimental_current.txt
M compose/ui/ui-unit/api/restricted_current.txt
M compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/Density.kt
M compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/Dp.kt
A compose/ui/ui-unit/src/test/kotlin/androidx/compose/ui/unit/DensityTest.kt
A compose/ui/ui-unit/src/test/kotlin/androidx/compose/ui/unit/DpSizeTest.kt
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 24cdeaa19107b6815f7d26e225d089b2ae529c76
Author: George Mount <mount@google.com>
Date: Mon Aug 02 21:46:23 2021
Add constructor for DpRect(DpOffset, DpSize)
Bug: 194219828
Relnote: Added DpRect(DpOffset, DpSize) constructor
Test: new test
Change-Id: I2cf1636d05302a444587d6a6c43bd2e52c0a903f
M compose/ui/ui-unit/api/current.txt
M compose/ui/ui-unit/api/public_plus_experimental_current.txt
M compose/ui/ui-unit/api/restricted_current.txt
M compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/Dp.kt
M compose/ui/ui-unit/src/test/kotlin/androidx/compose/ui/unit/DpTest.kt
https://android-review.googlesource.com/1784199
Branch: androidx-main
commit 24cdeaa19107b6815f7d26e225d089b2ae529c76
Author: George Mount <mount@google.com>
Date: Mon Aug 02 21:46:23 2021
Add constructor for DpRect(DpOffset, DpSize)
Bug: 194219828
Relnote: Added DpRect(DpOffset, DpSize) constructor
Test: new test
Change-Id: I2cf1636d05302a444587d6a6c43bd2e52c0a903f
M compose/ui/ui-unit/api/current.txt
M compose/ui/ui-unit/api/public_plus_experimental_current.txt
M compose/ui/ui-unit/api/restricted_current.txt
M compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/Dp.kt
M compose/ui/ui-unit/src/test/kotlin/androidx/compose/ui/unit/DpTest.kt
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit f4829e3a10aed3beffa283fdd0c8ce8f4afb3bfe
Author: George Mount <mount@google.com>
Date: Wed Aug 04 13:10:33 2021
Add DpSize versions of requiredSize and size modifiers
Bug: 194219828
As per the bug, Modifier.size() and Modifier.requiredSize()
would be useful with a DpSize argument.
Relnote: Added DpSize versions for Modifier.size and requiredSize
Test: new test
Change-Id: I3fc7e0a9bd9989a8217ccc2ecf9aaea047693e1d
M compose/foundation/foundation-layout/api/current.txt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
M compose/foundation/foundation-layout/api/restricted_current.txt
M compose/foundation/foundation-layout/build.gradle
M compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/SizeModifierSample.kt
M compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/SizeTest.kt
M compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Size.kt
https://android-review.googlesource.com/1786569
Branch: androidx-main
commit f4829e3a10aed3beffa283fdd0c8ce8f4afb3bfe
Author: George Mount <mount@google.com>
Date: Wed Aug 04 13:10:33 2021
Add DpSize versions of requiredSize and size modifiers
Bug: 194219828
As per the bug, Modifier.size() and Modifier.requiredSize()
would be useful with a DpSize argument.
Relnote: Added DpSize versions for Modifier.size and requiredSize
Test: new test
Change-Id: I3fc7e0a9bd9989a8217ccc2ecf9aaea047693e1d
M compose/foundation/foundation-layout/api/current.txt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
M compose/foundation/foundation-layout/api/restricted_current.txt
M compose/foundation/foundation-layout/build.gradle
M compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/SizeModifierSample.kt
M compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/SizeTest.kt
M compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Size.kt
na...@gmail.com <na...@gmail.com> #6
What about defaultMinSize?
mo...@google.com <mo...@google.com> #7
You can file a feature request. We have a new member of the team who is ideal to implement it.
Description
Obviously, there should overloads for DpRect(DpOffset, DpSize), defaultMinSize modifier overload with DpSize and similar places.