2022-03-23
Activity: v1.6.0-alpha01
March 23, 2022
androidx.activity:activity:1.6.0-alpha01, androidx.activity:activity-compose:1.6.0-alpha01, and androidx.activity:activity-ktx:1.6.0-alpha01 are released.
- Note: This version will only compile against the Android 13 Developer Preview 2 SDK.
New Features
- Integrated changes in Android 13 Dev Preview 2 into
ComponentActivity.
Activity: v1.5.0-alpha04
March 23, 2022
androidx.activity:activity:1.5.0-alpha04, androidx.activity:activity-compose:1.5.0-alpha04, and androidx.activity:activity-ktx:1.5.0-alpha04 are released. Version 1.5.0-alpha04 contains these commits.
Bug Fixes
SavedStateViewFactorynow supports usingCreationExtraseven when it was initialized with aSavedStateRegistryOwner. If extras are provided, the initialized arguments are ignored. (I6c43b, b/224844583)
Benchmark: v1.1.0-beta05
March 23, 2022
androidx.benchmark:benchmark-*:1.1.0-beta05 is released. Version 1.1.0-beta05 contains these commits.
Bug Fixes
- Kill package after skipping profile installation when using
CompilationMode.None. (aosp/1991373) - Fixed an issue where Macrobenchmarks is unable to collect startup metrics when using
StartupMode.COLD. (aosp/2012227 b/218668335)
Car App: v1.2.0-rc01
March 23, 2022
androidx.car.app:app-*:1.2.0-rc01 is released. Version 1.2.0-rc01 contains these commits.
- This is a stabilization release, and there are no API changes compared to
v1.2.0-beta02. New experimental features (API level 5) have been added that are intended for future Android Auto and Android Automotive releases.
Bug Fixes
- Fixed an exception that happens if the screen stack is modified after
State.DESTROYED. (I3c8eb) - Updated
CarSensorsAPI to indicate that they are not implemented for AAOS (Idd57b) - Updated
PlaceListMapTempalte.Builder#setCurrentLocationEnabledto indicate that ACCESS_COARSE_LOCATION would be sufficient for the feature (I510c2) - Made exit number optional for roundabout-with-angle maneuver types (Ife7d1)
Compose Animation: v1.2.0-alpha06
March 23, 2022
androidx.compose.animation:animation:1.2.0-alpha06, androidx.compose.animation:animation-core:1.2.0-alpha06, and androidx.compose.animation:animation-graphics:1.2.0-alpha06 are released. Version 1.2.0-alpha06 contains these commits.
API Changes
- Updated parsing of vector drawables to support auto mirroring to flip the content of a
VectorPainterif the current layout direction is RTL. (I79cd9, b/185760237)
Bug Fixes
- Updated Vector graphics APIs to use the proper composable annotation
@VectorComposableinstead of@UiComposable(I942bc)
Compose Compiler: v1.2.0-alpha06
March 23, 2022
androidx.compose.compiler:compiler:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.
Compose Foundation: v1.2.0-alpha06
March 23, 2022
androidx.compose.foundation:foundation:1.2.0-alpha06 and androidx.compose.foundation:foundation-layout:1.2.0-alpha06 are released. Version 1.2.0-alpha06 contains these commits.
API Changes
- Added
RequestFocussemantics action to request focus on the focusable target. (I17b71) FocusOrderhas now been merged intoFocusPropertiesandfocusProperties()now has all the capabilities offocusOrder().FocusOrderandfocusOrder()have been deprecated.focusOrder()that accepts afocusRequestershould be replaced with afocusRequester()modifier in combination withfocusProperties(). This allows the modifiers to have a stronger separation of concerns. (I601b7)WindowInsets.asPaddingValues(Density)was added to allow developers to do the conversion without needing to be in composition. (I94c35)- Updated parsing of vector drawables to support auto mirroring to flip the content of a
VectorPainterif the current layout direction is RTL. (I79cd9, b/185760237)
Bug Fixes
- Scroll modifiers (
Modifier.verticalScroll(),Modifier.horizontalScroll(), andModifier.scrollable()) will now scroll to keep the focused composable visible if the scroll area is resized and the focused composable was previously visible. - TextFields will now be kept above the keyboard when they are focused and the keyboard is shown, when inside a non-lazy scrollable and the soft input mode is
ADJUST_RESIZE. (I4a485, b/190539358, b/192043120, b/216842427)
Compose Material: v1.2.0-alpha06
March 23, 2022
androidx.compose.material:material-*:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.
API Changes
- Updates to the clickable Card API to follow changes at the Surface API (I56bcb)
- Updates to Material 2 Surface API that adds additional overloaded functions for selectable and toggleable Surfaces. (Ifcca5)
Compose Material 3: v1.0.0-alpha08
March 23, 2022
androidx.compose.material3:material3:1.0.0-alpha08 is released. Version 1.0.0-alpha08 contains these commits.
New Features
- Added support for Material 3 text fields. (I795cc, b/199377790)
API Changes
- Add default divider for menu (I01374)
- Added
surfaceTintcolor parameter toColorSchemeclass. (I2f558)
Bug Fixes
- Fix at the Material3 Button to read its default text style value from the MaterialTheme. (Ie62fc)
Compose Runtime: v1.2.0-alpha06
March 23, 2022
androidx.compose.runtime:runtime-*:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.
Compose UI: v1.2.0-alpha06
March 23, 2022
androidx.compose.ui:ui-*:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.
API Changes
- Added
RequestFocussemantics action to request focus on the focusable target. (I17b71) - Updated parsing of vector drawables to support auto mirroring to flip the content of a
VectorPainterif the current layout direction is RTL. (I79cd9, b/185760237) Updated shadow/ambient colors to be trailing parameters of
Modifier.graphicsLayerfor API compatibility (I3f864, b/160665122)Added default implementations to shadow/ambient color on
GraphicsLayerScopeto ensure non-breaking API changesAdded event time to RSB events (Ief8ae)
FocusOrderhas now been merged intoFocusPropertiesandfocusProperties()now has all the capabilities offocusOrder().FocusOrderandfocusOrder()have been deprecated.focusOrder()that accepts afocusRequestershould be replaced with afocusRequester()modifier in combination withfocusProperties(). This allows the modifiers to have a stronger separation of concerns. (I601b7)Upgrading both
RecyclerViewandComposewill now result in much better scrolling performance for RecyclerViews with Compose views as children.Add
ViewCompositionStrategy.Defaultas a means of retrieving the built-in default strategyAdd
ViewCompositionStrategy.DisposeOnDetachedFromWindowIfNotInPoolingContainer, which is the new default strategy and properly handles pooling containers such as RecyclerView. (If7282)Added support for annotating annotations classes with @Preview as a first step for adding the Multipreview feature. Such annotations could be used to annotate Composable methods or other annotation classes, which could then be considered as indirectly annotated with the given @Preview. (I12eff)
Reference devices added to the Devices list for @Preview (I071c9)
Bug Fixes
- Updated Vector graphics APIs to use the proper composable annotation @VectorComposable instead of @UiComposable (I942bc)
- Remove crossinline from
AnnotatedString.Builder.withStyle(If84d5)
External Contribution
- compose-ui: Add
ambientShadowColorandspotShadowColorproperties toGraphicsLayerScope(I1ba1a, b/160665122) - Plural resources are now supported via the
pluralStringResourcefunctions. (Ib2f23, b/191375123)
Core and Core-ktx: v1.9.0-alpha02
March 23, 2022
androidx.core:core:1.9.0-alpha02 and androidx.core:core-ktx:1.9.0-alpha02 are released. Version 1.9.0-alpha02 contains all commits from 1.8.0-alpha06, but has been built against Tiramisu DP2.
Core and Core-ktx: v1.8.0-alpha06
March 23, 2022
androidx.core:core:1.8.0-alpha06 is released. Version 1.8.0-alpha06 contains these commits.
API Changes
- The
MenuProviderinterface now includes theonPrepareMenu()callback, which is called when a menu is dynamically modified and should be shown. (Ie85f9) - The
MenuProviderinterface now includes theonMenuClosed()method to be used whenever a menu should be closed. (If5a16) - Updated
IconCompat#getResIdto have the proper resource annotation type to match the corresponding method in the framework inIcon#getResId(I49700) - Reverted previous change of relying solely on a View for
WindowInsetsControllerCompat, and again require a Window which is required for managing some window flags. DeprecatedViewCompat.getWindowInsetsControllerin favor ofWindowCompat.getInsetsControllerto ensure that the correct Window is used (such as if the View is in a dialog). (I660ae, b/219572936) - Updated nullability in core and appcompat to match Tiramisu DP2 (I0cbb7)
- Adds a method to
BitmapCompatfor smoother downscaling of bitmaps. (Ib706c) - Added nullability annotations to
ActivityCompat.requestDragAndDropPermissions(I0f2b0, b/206113378) - Added a work-around to
FileProviderfor OEMs stripping meta-data from manifests. (I82f63)
Bug Fixes
- Consider parent visibility changes for a11y pane visibility status for <P (I8e04f)
Core Performance: v1.0.0-alpha02
March 23, 2022
androidx.core:core-performance:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
New Features
- Provide an easy and reliable mechanism for developers to identify at runtime the device’s level of performance in order to deliver an optimized app experience.
- This initial release uses a list of hand-tested devices that are granted performance class values higher than the level declared in Build.VERSION.MEDIA_PERFORMANCE_CLASS
Core Splashscreen: v1.0.0-beta02
March 23, 2022
androidx.core:core-splashscreen:1.0.0-beta02 is released. Version 1.0.0-beta02 contains these commits.
Bug Fixes
- Fixed
Lateinit property platformView has not been initialized(b/214835299)
External Contribution
- Fix rendering issue on MIUI with dark mode and Explicitly set
android:animateLayoutChangesto false to avoid the fading animation when removing the splash screen in theOnExitAnimationListener(#327)
Customview Poolingcontainer: v1.0.0-alpha01
March 23, 2022
androidx.customview:customview-poolingcontainer:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
Features in first release
- The CustomView Poolingcontainer library contains utilities for listening to the lifecycle of containers that manage their child Views' lifecycle, such as RecyclerView.
DragAndDrop: v1.0.0-beta01
March 23, 2022
androidx.draganddrop:draganddrop:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.
- No changes since last alpha release.
Emoji2: v1.2.0-alpha02
March 23, 2022
androidx.emoji2:emoji2-*:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.
Bug Fixes
- Emoji2 will add emoji to
PrecomputedTextby discarding previously precomputed text layout. (I47d06, b/211231958) - Backport editor crash fix from Android P to EditText that is configured to use emoji2. (Ifd709, b/216891011)
- Fix crash when emoji2 loads font and
TextView.setText(char[])was used. (Id511e, b/206859724)
Fragment: v1.5.0-alpha04
March 23, 2022
androidx.fragment:fragment:1.5.0-alpha04, androidx.fragment:fragment-ktx:1.5.0-alpha04, and androidx.fragment:fragment-testing:1.5.0-alpha04 are released. Version 1.5.0-alpha04 contains these commits.
API Changes
- The Fragment APIs for providing a menu to your activity’s
ActionBarhave been deprecated as they tightly couple your fragment to your activity and are not testable in isolation. TheMenuHostandMenuProviderAPIs added in Activity1.4.0-alpha01provide a testable, lifecycle aware equivalent API surface that fragments should use. (I50a59, I20758)
Bug Fixes
SavedStateViewFactorynow supports usingCreationExtraseven when it was initialized with aSavedStateRegistryOwner. If extras are provided, the initialized arguments are ignored. (I6c43b, b/224844583)
Lifecycle: v2.5.0-alpha05
March 23, 2022
androidx.lifecycle:lifecycle-*:2.5.0-alpha05 is released. Version 2.5.0-alpha05 contains these commits.
New Features
- The
lifecycle-viewmodel-composemodule now providesSavedStateHandleSaver, an experimental API that ensures values in aSavedStateHandleare integrated correctly with the same saved instance state thatrememberSaveableuses. (Ia88b7, b/195689777)
API Changes
- Fixed a compatibility issue with Lifecycle 2.3 and newer Lifecycle versions in Java. (I52c8a, b/219545060)
Bug Fixes
SavedStateViewFactorynow supports usingCreationExtraseven when it was initialized with aSavedStateRegistryOwner. If extras are provided, the initialized arguments are ignored. (I6c43b, b/224844583)
Media: v1.6.0-beta01
March 23, 2022
androidx.media:media:1.6.0-beta01 is released. Version 1.6.0-beta01 contains these commits.
- No changes since the last alpha release.
Mediarouter: v1.3.0-rc01
March 23, 2022
androidx.mediarouter:mediarouter:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.
- No changes since the last beta release.
Junit-Gtest 1.0: Junit-Gtest 1.0.0-alpha01
March 23, 2022
androidx.test.ext:junit-gtest:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
Features in first release
- JUnit Gtest is a new library which includes a JUnit runner for running Gtest suites on connected devices.
Textclassifier: v1.0.0-alpha04
March 23, 2022
androidx.textclassifier:textclassifier:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.
API Changes
- Deprecate all the APIs in the textclassifier module (Idc180, b/210509084)
Bug Fixes
- API lint check for
MissingGetterMatchingBuilderis enabled for androidx (I4bbea, b/138602561) AppCompatRatingBarPNG drawables have been replaced with vector sources. This may cause slight changes in the visual appearance of individual stars. (I6b99d)
Wear Compose: v1.0.0-alpha19
March 23, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha19, androidx.wear.compose:compose-material:1.0.0-alpha19, and androidx.wear.compose:compose-navigation:1.0.0-alpha19 are released. Version 1.0.0-alpha19 contains these commits.
API Changes
- Renamed
CurvedRowtoCurvedLayout, and reworked to be a scope with a DSL. Using this DSL, more complex curved layouts can be specified using a series of nestedcurvedRowandcurvedColumn(Which are the curved layout equivalents of Row and Column). Inside these layout elements, three elements can be used:curvedComposable(to add any @composable),basicCurvedText(foundation's curved text) andcurvedText(wear material aware curved text). (Ib776a) - Make the side for the
PositionIndicatorconfigurable. The basic PositionIndicator’s position can now be configured to be End (layout direction-aware), OppositeRsb (takes into account screen rotation, to position itself opposite to the physical RSB), or the absolutes Left & Right. (I2f1f3) - For
SwipeToDismissBox, we have renamedSwipeDismissTarget.Original toSwipeToDismissValue.DefaultandSwipeDismissTarget.DismissaltoSwipeToDismissValue.Dismissed. We have also movedSwipeToDismissBoxDefaults.BackgroundKeyandSwipeToDismissBoxDefaults.ContentKeytoSwipeToDismissKeys.Background,SwipeToDismissKeys.Contentrespectively. (I47a36) - We have added a read-only mode to Picker, for screens with multiple Pickers where only one Picker is editable at a time. When the Picker is read-only, it displays the currently selected option, and a label if one has been provided. (I879de)
SwipeToDismissBoxStatehas been refactored to restrict the scope ofExperimentalWearMaterialApitoModifier.swipeableandSwipeableState, which are now used internally.SwipeToDismissBoxStatenow hascurrentValue,targetValue,isAnimationRunningandsnapTomembers to support common use cases - please let us know if you require any further properties to be made available. Also fixed the behavior ofSwipeableStatein the case where the swipe offset is within a rounding error of an anchor. (I58302)
Bug Fixes
- Simplified and fixed code to detect if the content of a
ScalingLazyColumncan be scrolled (used to decide if we display a scrollbar or not) (I7bce0) - Fixed a bug on Position Indicator when used with more than one state and switching between them (I320b5)
- We have updated the default Compose for Wear OS theme typography/fonts to match our latest UX guidance. Of note display1 (40.sp) and display2 (34.sp) are now smaller than their previous values and various other minor updates to line height and line spacing have been made. (Ie3077)
- We have added resistance to
SwipeToDismissBoxso that motion only happens when swiping to dismiss and not at all in the opposite direction. (Ifdfb9) - We have changed some of the default parameter values for the
CircularProgressIndicatorfunctions to bring them in-line with Wear Material Design UX guidance. For the Spinner/Indeterminant version the size (40->24.dp), indicatorColor (primary->onBackground), trackColor transparency (30%->10%) and stroke width (4->3dp) have been updated. For the Progress/Determinate version the trackColor transparency (30%->10%) has been updated. (I659cc) - We have updated the default scaling params of the
ScalingLazyColumnin-line with the latest Wear Material Design UX specifications. Visually this results in list items starting to be scaled closer to the list center, but being less scaled at the list edge than before. (Ica8f3) - Some adjustments to
ScalingLazyColumnDefaults.snapFlingBehaviorto improve the end of the animation (If3260)
Wear Tiles: v1.1.0-alpha04
March 23, 2022
androidx.wear.tiles:tiles-*:1.1.0-alpha04 is released. Version 1.1.0-alpha04 contains these commits.
New Features - Optional primary or secondary label can be added to PrimaryLayout. (Ib9916) - Text component can be customized by setting overflow, italic, underline, etc. (I703f7)
API Changes
- Default color constants have been removed from the Tiles Material API. (I0ab55)
- All clickable components in Tiles Material require
Clickableobject in their Builder’s constructor instead of an Action. (I2f101)
Bug Fixes