commit | bd4fb0a5dcfcade5498f96ab07a45106628458d2 | [log] [tgz] |
---|---|---|
author | Levi Albuquerque <[email protected]> | Mon Mar 11 17:33:27 2024 +0000 |
committer | Levi Albuquerque <[email protected]> | Tue Apr 02 23:58:19 2024 +0000 |
tree | e2b5646088e119ef31afdaadcdcdf7df41c2908d | |
parent | 48cb4df41d00a4c45133b22796992ae1229729ca [diff] |
Update BringIntoViewSpec in Scrollables. Introduce LocalBringIntoViewSpec, a platform dependent focus scrolling behavior that is applied at the Scrollable modifier layer. Reading LocalBringIntoViewSpec will provide a platform dependent behavior on Android for TV and non-TV devices. Overriding this for a hierarchy will apply the new behavior to all components that use Modifier.scrollable and don't provide a spec during the construction of scrollable. This applies to most scrollable containers in Foundation so it's a good way to change the behavior to higher level scrollable containers like LazyLists. Related docs: https://docs.google.com/document/d/1StJcbbIALEfyTddogznrMXmz3a21xUMhPYwWi08fXWI/edit?tab=t.0#heading=h.1ifxuxa6kmlx and https://docs.google.com/document/d/1AQWuucrnPV1HE9Rzi_hAZejuc2HYO3beEMhN9XFzSLw/edit?addon_store&resourcekey=0-yaUdyQM5xjQn84OxKCj7Ew&tab=t.0#heading=h.diie8o9zign8 Test: Previous tests should pass. Relnote: Introduce LocalBringIntoViewSpec, a platform dependent focus scrolling behavior that is applied at the Scrollable modifier layer. Fixes: 286875373 Fixes: 317453911 Change-Id: I27aa527cf8088eb3295f97da7501c76e4c4456f4
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.