Skip to content

2022-03-23

Choose a tag to compare

@github-actions github-actions released this 23 Mar 18:45
· 220 commits to main since this release

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

  • SavedStateViewFactory now supports using CreationExtras even when it was initialized with a SavedStateRegistryOwner. 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

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 CarSensors API to indicate that they are not implemented for AAOS (Idd57b)
  • Updated PlaceListMapTempalte.Builder#setCurrentLocationEnabled to 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 VectorPainter if the current layout direction is RTL. (I79cd9, b/185760237)

Bug Fixes

  • Updated Vector graphics APIs to use the proper composable annotation @VectorComposable instead 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 RequestFocus semantics action to request focus on the focusable target. (I17b71)
  • FocusOrder has now been merged into FocusProperties and focusProperties() now has all the capabilities of focusOrder(). FocusOrder and focusOrder() have been deprecated. focusOrder() that accepts a focusRequester should be replaced with a focusRequester() modifier in combination with focusProperties(). 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 VectorPainter if the current layout direction is RTL. (I79cd9, b/185760237)

Bug Fixes

  • Scroll modifiers (Modifier.verticalScroll(),Modifier.horizontalScroll(), and Modifier.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

API Changes

  • Add default divider for menu (I01374)
  • Added surfaceTint color parameter to ColorScheme class. (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 RequestFocus semantics action to request focus on the focusable target. (I17b71)
  • Updated parsing of vector drawables to support auto mirroring to flip the content of a VectorPainter if the current layout direction is RTL. (I79cd9, b/185760237)
  • Updated shadow/ambient colors to be trailing parameters of Modifier.graphicsLayer for API compatibility (I3f864, b/160665122)

  • Added default implementations to shadow/ambient color on GraphicsLayerScope to ensure non-breaking API changes

  • Added event time to RSB events (Ief8ae)

  • FocusOrder has now been merged into FocusProperties and focusProperties() now has all the capabilities of focusOrder(). FocusOrder and focusOrder() have been deprecated. focusOrder() that accepts a focusRequester should be replaced with a focusRequester() modifier in combination with focusProperties(). This allows the modifiers to have a stronger separation of concerns. (I601b7)

  • Upgrading both RecyclerView and Compose will now result in much better scrolling performance for RecyclerViews with Compose views as children.

  • Add ViewCompositionStrategy.Default as a means of retrieving the built-in default strategy

  • Add 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 ambientShadowColor and spotShadowColor properties to GraphicsLayerScope (I1ba1a, b/160665122)
  • Plural resources are now supported via the pluralStringResource functions. (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 MenuProvider interface now includes the onPrepareMenu() callback, which is called when a menu is dynamically modified and should be shown. (Ie85f9)
  • The MenuProvider interface now includes the onMenuClosed() method to be used whenever a menu should be closed. (If5a16)
  • Updated IconCompat#getResId to have the proper resource annotation type to match the corresponding method in the framework in Icon#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. Deprecated ViewCompat.getWindowInsetsController in favor of WindowCompat.getInsetsController to 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 BitmapCompat for smoother downscaling of bitmaps. (Ib706c)
  • Added nullability annotations to ActivityCompat.requestDragAndDropPermissions (I0f2b0, b/206113378)
  • Added a work-around to FileProvider for 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:animateLayoutChanges to false to avoid the fading animation when removing the splash screen in the OnExitAnimationListener (#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 PrecomputedText by 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 ActionBar have been deprecated as they tightly couple your fragment to your activity and are not testable in isolation. The MenuHost and MenuProvider APIs added in Activity 1.4.0-alpha01 provide a testable, lifecycle aware equivalent API surface that fragments should use. (I50a59, I20758)

Bug Fixes

  • SavedStateViewFactory now supports using CreationExtras even when it was initialized with a SavedStateRegistryOwner. 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-compose module now provides SavedStateHandleSaver, an experimental API that ensures values in a SavedStateHandle are integrated correctly with the same saved instance state that rememberSaveable uses. (Ia88b7, b/195689777)

API Changes

  • Fixed a compatibility issue with Lifecycle 2.3 and newer Lifecycle versions in Java. (I52c8a, b/219545060)

Bug Fixes

  • SavedStateViewFactory now supports using CreationExtras even when it was initialized with a SavedStateRegistryOwner. 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

Bug Fixes

  • API lint check for MissingGetterMatchingBuilder is enabled for androidx (I4bbea, b/138602561)
  • AppCompatRatingBar PNG 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 CurvedRow to CurvedLayout, and reworked to be a scope with a DSL. Using this DSL, more complex curved layouts can be specified using a series of nested curvedRow and curvedColumn (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) and curvedText (wear material aware curved text). (Ib776a)
  • Make the side for the PositionIndicator configurable. 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 renamed SwipeDismissTarget.Original to SwipeToDismissValue.Default and SwipeDismissTarget.Dismissal to SwipeToDismissValue.Dismissed. We have also moved SwipeToDismissBoxDefaults.BackgroundKey and SwipeToDismissBoxDefaults.ContentKey to SwipeToDismissKeys.Background, SwipeToDismissKeys.Content respectively. (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)
  • SwipeToDismissBoxState has been refactored to restrict the scope of ExperimentalWearMaterialApi to Modifier.swipeable and SwipeableState, which are now used internally. SwipeToDismissBoxState now has currentValue, targetValue, isAnimationRunning and snapTo members to support common use cases - please let us know if you require any further properties to be made available. Also fixed the behavior of SwipeableState in 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 ScalingLazyColumn can 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 SwipeToDismissBox so 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 CircularProgressIndicator functions 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 ScalingLazyColumn in-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.snapFlingBehavior to 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 Clickable object in their Builder’s constructor instead of an Action. (I2f101)

Bug Fixes

  • Text will now draw an ellipsis on overflow in Chip and Text component. (I8a2f8)
  • Improved components look when the user font scale is set to large. (Ib63b1)
  • Clarify Javadocs of setPrimaryChipContent in PrimaryLayout. (Ie6296)