Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 8e13b9da1fa710b9095a42049d7bd780cc9c16cd
Author: George Mount <mount@google.com>
Date: Mon Jan 10 15:12:45 2022
Add Modifiers for WindowInsets
Bug: 213942085
RelNote: "Adds Modifiers for WindowInsets, both for padding
and sizing. This allows some content to extend into the inset area,
and still have primary content stay out of the inset area.
For example, windowInsetsPadding can be used to pad the content
area to avoid areas that may be fully or partially covered."
Test: new tests. manual tests. Tested on L, M, O, P, Q, and R
Change-Id: Id0395142409b981e92f94fb46ebf1c2ec2540048
A compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/WindowInsetsSizeTest.kt
A compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/WindowInsetsPaddingSample.kt
A compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/WindowInsetsPaddingTest.kt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
A compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsets.kt
A compose/foundation/foundation-layout/src/androidMain/kotlin/androidx/compose/foundation/layout/WindowInsetsPadding.android.kt
M compose/foundation/foundation-layout/api/current.txt
M compose/foundation/foundation-layout/build.gradle
A compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsetsPadding.kt
M compose/foundation/foundation-layout/api/restricted_current.txt
A compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/WindowInsetsSizeSample.kt
M compose/foundation/foundation-layout/samples/build.gradle
A compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsetsSize.kt
A compose/foundation/foundation-layout/src/androidMain/kotlin/androidx/compose/foundation/layout/WindowInsets.android.kt
https://android-review.googlesource.com/1944465
Branch: androidx-main
commit 8e13b9da1fa710b9095a42049d7bd780cc9c16cd
Author: George Mount <mount@google.com>
Date: Mon Jan 10 15:12:45 2022
Add Modifiers for WindowInsets
Bug: 213942085
RelNote: "Adds Modifiers for WindowInsets, both for padding
and sizing. This allows some content to extend into the inset area,
and still have primary content stay out of the inset area.
For example, windowInsetsPadding can be used to pad the content
area to avoid areas that may be fully or partially covered."
Test: new tests. manual tests. Tested on L, M, O, P, Q, and R
Change-Id: Id0395142409b981e92f94fb46ebf1c2ec2540048
A compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/WindowInsetsSizeTest.kt
A compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/WindowInsetsPaddingSample.kt
A compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/WindowInsetsPaddingTest.kt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
A compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsets.kt
A compose/foundation/foundation-layout/src/androidMain/kotlin/androidx/compose/foundation/layout/WindowInsetsPadding.android.kt
M compose/foundation/foundation-layout/api/current.txt
M compose/foundation/foundation-layout/build.gradle
A compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsetsPadding.kt
M compose/foundation/foundation-layout/api/restricted_current.txt
A compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/WindowInsetsSizeSample.kt
M compose/foundation/foundation-layout/samples/build.gradle
A compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsetsSize.kt
A compose/foundation/foundation-layout/src/androidMain/kotlin/androidx/compose/foundation/layout/WindowInsets.android.kt
Description
Android R allows handling animated insets. Compose does not support insets, so this must be handled with standard Android mechanisms.
Developers don't automatically get the animated insets. For example, when the soft keyboard animates up, the content doesn't move or pops to the final position.