commit | 68577e657bf3edb1e7715510b7bdfcf4141b8654 | [log] [tgz] |
---|---|---|
author | Ankit <ankitikna@google.com> | Fri Feb 10 09:30:45 2023 +0530 |
committer | Ankit <ankitikna@google.com> | Fri Feb 10 21:31:36 2023 +0530 |
tree | 09d20701562f4aacce1a7225d66a86f247456871 | |
parent | fe5d831310100b1ab984ec115d062e42706a5382 [diff] |
Fix custom layout constraints in PickerGroup PickerGroup relies on custom layout to center the items inside itself. When `Modifier.fillMaxSize()` was applied on the PickerGroup, it was setting the minHeight and minWidth same as that of maxHeight and maxWidth. This caused the child composables to take up the whole space leading to a single picker taking up all the space and hiding the other pickers. This change resets the incoming constraints from the parent composable for min width and height, allowing the child composables to take only the space that is required. Apart from that, the custom layout does not need height more than the max height of child composables which will make the layout compact in terms of its size while including all the children properly. Relnote: """ Update PickerGroup API to allow propagating the min constraints to the composable optionally. When set as true, the minimum constraints passed from the parent composable will be allowed on the PickerGroup. If set as false, PickerGroup will reset the minimum constraints. """ Bug: 264147685 Test: Manual testing Change-Id: I3e046ae05db206b34b106c5601891de0e3913e0a
Jetpack is a suite of libraries, tools, and guidance to help developers write high-quality apps easier. These components help you follow best practices, free you from writing boilerplate code, and simplify complex tasks, so you can focus on the code you care about.
Jetpack comprises the androidx.*
package libraries, unbundled from the platform APIs. This means that it offers backward compatibility and is updated more frequently than the Android platform, making sure you always have access to the latest and greatest versions of the Jetpack components.
Our official AARs and JARs binaries are distributed through Google Maven.
You can learn more about using it from Android Jetpack landing page.
For contributions via GitHub, see the GitHub Contribution Guide.
Note: The contributions workflow via GitHub is currently experimental - only contributions to the following projects are being accepted at this time:
When contributing to Jetpack, follow the code review etiquette.
We are not currently accepting new modules.
Head over to the onboarding docs to learn more about getting set up and the development workflow!
Our continuous integration system builds all in progress (and potentially unstable) libraries as new changes are merged. You can manually download these AARs and JARs for your experimentation.
Before uploading your first contribution, you will need setup a password and agree to the contribution agreement:
Generate a HTTPS password: https://android-review.googlesource.com/new-password
Agree to the Google Contributor Licenses Agreement: https://android-review.googlesource.com/settings/new-agreement
AndroidX uses git to store all the binary Gradle dependencies. They are stored in prebuilts/androidx/internal
and prebuilts/androidx/external
directories in your checkout. All the dependencies in these directories are also available from google()
, or mavenCentral()
. We store copies of these dependencies to have hermetic builds. You can pull in a new dependency using our importMaven tool.