Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit f7ec8cebf6930f560c2e9c4b0704aeb8f74a3102
Author: Mihai Popa <popam@google.com>
Date: Fri Apr 16 12:19:07 2021
Padding API fixes
Relnote: "Default 0.dp parameter values were added to PaddingValues(horizontal, vertical)"
Fixes: 185565645
Fixes: 181336792
Bug: 177366651
Test: PaddingTest
Change-Id: I0557182c68da793da30caeb6325949829101e0cf
M compose/foundation/foundation-layout/api/1.0.0-beta06.txt
M compose/foundation/foundation-layout/api/current.txt
M compose/foundation/foundation-layout/api/public_plus_experimental_1.0.0-beta06.txt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
M compose/foundation/foundation-layout/api/restricted_1.0.0-beta06.txt
M compose/foundation/foundation-layout/api/restricted_current.txt
M compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Padding.kt
https://android-review.googlesource.com/1678085
Branch: androidx-main
commit f7ec8cebf6930f560c2e9c4b0704aeb8f74a3102
Author: Mihai Popa <popam@google.com>
Date: Fri Apr 16 12:19:07 2021
Padding API fixes
Relnote: "Default 0.dp parameter values were added to PaddingValues(horizontal, vertical)"
Fixes: 185565645
Fixes: 181336792
Bug: 177366651
Test: PaddingTest
Change-Id: I0557182c68da793da30caeb6325949829101e0cf
M compose/foundation/foundation-layout/api/1.0.0-beta06.txt
M compose/foundation/foundation-layout/api/current.txt
M compose/foundation/foundation-layout/api/public_plus_experimental_1.0.0-beta06.txt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
M compose/foundation/foundation-layout/api/restricted_1.0.0-beta06.txt
M compose/foundation/foundation-layout/api/restricted_current.txt
M compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Padding.kt
Description
Jetpack Compose release version: 1.0.0-beta01 Android Studio Build:Android Studio Arctic Fox | 2020.3.1 Canary 8 Build #AI-203.7148.57.2031.7165533, built on February 23, 2021
Expected
I want to add vertical content padding to a
LazyColumn
:Actual
The
horizontal
parameter does not have a default value and therefore the following, more verbose code needs to be written.The following builder functions are provided for
PaddingValues
:Potential solution
Add default values to the existing builder function.
The semantics of not passing any parameters, i.e.
PaddingValues()
, do not change.