New Features
ComponentActivityandComponentDialoghave been integrated with NavigationEvent1.0.0-alpha01via theNavigationEventDispatcherOwnerAPI. You can now retrieve aNavigationEventDispatcherfrom yourComponentActivityvia thenavigationEventDispatcherfield. Since theOnBackPressedDispatcherhas been re-written on top of the new library all previous usages should continue to work correctly. You should useNavigationEventDispatcherandNavigationEventCallbackgoing forward. Ib8eed I6cc44 Ib7724 I9a0f7 b/412597031 b/415028038 b/412596729 b/412597140 b/412596012
New Features
AppSearchmodule enters RC.- Adds a new experimental API to accumulate actions for the
PutDocumentsRequest#addTakenActionmethod I7b726 - Add
SearchResult#TextMatchInfo,SearchResult#EmbeddingMatchInfo; restructureSearchResult#MatchInfofor providing match information for embeddings matches I8f78d - Introduce ranking functions for list manipulation Ifa4ab
API Changes
- Support
AppSearchannotation processor for blob handle property. I9520b - Update
AppSearchannotation processor to support quantization. Ie0c85 - Adds a static
getFeatures()method to bothPlatformStorageandLocalStorageI5a206
Bug Fixes
- This library now uses JSpecify nullness annotations, which are type-use. Kotlin developers should use the following compiler arguments to enforce correct usage: -Xjspecify-annotations=strict, -Xtype-enhancement-improvements-strict-mode I91f42 b/326456246
API Changes
- Added new intent extra for custom tabs I911e0
- Added
BrowserandMiminalUimodes toTWADisplayModeI230b5 - Added capability check API for Ephemeral Browsing I17d42
- Remove experimental annotation for
PendingSessionAPI Id6fe3 - Added Auth Tab capability check API Ifc029
- Removed Custom Tab minimize signals experimental annotation If2b44
New Features
All capabilities are temporarily only available on Android Auto. The same API’s will be leveraged across AAOS
- Added Media category to create custom application, as an alternative to
MediaBrowsebased ones - Added Playback Template which allows to control the top actions during in Media Playback View (only available to Media apps)
- Added full support for Sectioned Item Template on Android Auto, which allows combinations of sub-sections made of Lists/Grids.
- Added Extra-Large as an additional size for Grid Items.
API Changes
- Add an extra size option for Grid items I35b58
- Adds category and permission for media apps to Car App Library I8e100
- Added new api for apps to detect whether the
CarAppLibrarymedia category is supported Ic4b08 - Added
OnItemVisibilityChangeListenerto Section. I2c2fd - Added
Mileage#getOdometerKilometersand deprecateMileage#getOdometerMetersIc91af
Bug Fixes
Bug Fixes
- Introduced a fix that prevents calculation of number of items to load for focus search to cause a division by zero. Applied the check to all layouts that use
LazyLayoutBeyondBoundsState. 8e6dc8
API Changes
- Added
AnnotatedOutputTransformationthat provides a way to add annotations toTextFieldbefore rendering. Ibc6f0 b/389978748 - Introduce
LazyLayoutMeasurePolicyand makeLazyLayoutMeasureScopestable. I8c5df b/252853717 BasicSecureTextFieldnow hoists ScrollState of its internalBasicTextField. I6e576Modifier.onFirstVisibleandModifier.onVisibilityChangedmodifiers were introduced, which are high level modifiers built on top ofModifier.onLayoutRectChanged. These modifiers are built specifically to handle a lot of common application requirements such as logging impressions, auto playing videos, etc. These have been built with performance in mind so that they can be used in critical list-based scenarios without risk of sacrificing scroll performance. In addition to these modifier APIs, additional APIs toRelativeLayoutBoundshave been added in order to support these use cases, as well as make it easier for developers to easily create similar custom modifiers that suit their use case exactly. I759b8- Introduced a
detectDragGesturesoverload that has touch slop and orientation lock control. Iadb0d - Introduce
Modifier.scrollable2D,Scrollable2DStateand companion APIs for state creation. Also introduced common scroll extension functions. Ic61c8 b/214410040 - Compose 64-bit color values are not directly comparable to Android
ColorLongsbecause the color space IDs are out of order for some color spaces. To convert to and from Android color spaces, two new APIs are added:toColorLong()andfromColorLong(). I36899
Bug Fixes
- Text copied from multiple Text composables in a
SelectionContainernow will have a line separator\nadded between text coming from the separate Text composables. I25332 b/285036739
API Changes
- Added
MotionTheme.LocalMotionScheme, composition local. This allows access to the theme motion scheme fromCompositionLocalConsumerModifierNodes, withcurrentValueOf(MotionTheme.LocalMotionScheme). I014b1 ColorSchemeconstructor without Fixed color roles is now deprecated. Please migrate to constructor that includes fixed roles. Iad0ee- M3 Text component now supports
TextAutoSize. I7f524 - Add api for constructing split button size variants and add samples. Ice30b
Bug Fixes
- Fixed an issue where
SnackbarandFloatingActionButtonwere incorrectly positioned when edge-to-edge was enabled. Scaffold now correctly applies horizontal insets to these components. Ib7c30 b/244400727 - Fix the
BottomSheetmotion from fully expanded to partially expanded. TheBottomSheetnow uses theMotionScheme's fast-effect when hiding or collapsing, and default-spatial when expanding. Ifa46f b/416063171 ColorSchemeconstructor without surface container roles has been marked hidden and no longer recommended for use. Ia7237- Removed a
CircularWavyProgressIndicatorSize.minDimension > 0requirement, which used to throw an exception, to allow more flexibility. Ic9418 b/377531195 - Hyperlinks in
Text(AnnotatedString)now have Material styling by default. I78288 b/339843816 - Fix an issue where the
toShape()function in theRoundedPolygonis caching a Path and causing an issue when multiplecreateOutlinecalls are made with different sizes. I4026d
New Features
- The default pane scaffold directive calculation functions is now supporting L and XL window width size classes.
API Changes
API Changes
- Change
setDiagnosticStackTraceEnabledto experimental to account for future development of this feature. I11db3
Bug Fixes
- Fixed the reusing state when a composition was paused and restarted but some previously paused state needed to be recomposed because some state it read changed while the composition was paused. I441d1 b/416209738
- Completed the pausable composition remember dispatch fix for issue b/404058957 previous fix was incomplete. I1afd4 b/404058957
SaveableStateHolder.SaveableStateProvidernow provides aLocalSavedStateRegistryOwnerto its content via composition. Ia2761 b/413108878androidx.compose.runtime.saveablenow depends onandroidx.lifecycle.runtime.compose. I53228 b/413108878
API Changes
- Flag
ComposeUiFlags.isGetFocusedRectReturnEmptyEnabledmakes it so that when nothing is focusable in aComposeView, it sets the rect to an Empty value. This prevents a focus search from choosing the View to focus on. This is especially important for when an IME has a NEXT option where it might try to focus on theComposeViewandrequestFocus()fails. Ibd0e2 b/369256395 - Introduce flag
isNestedScrollDispatcherNodeFixEnabled. I0d24a - Rename
DialogProperties'dialogContentTitletowindowTitleIbd27b Modifier.onFirstVisibleandModifier.onVisibilityChangedmodifiers were introduced, which are high level modifiers built on top ofModifier.onLayoutRectChanged. These modifiers are built specifically to handle a lot of common application requirements such as logging impressions, auto playing videos, etc. These have been built with performance in mind so that they can be used in critical list-based scenarios without risk of sacrificing scroll performance. In addition to these modifier APIs, additional APIs toRelativeLayoutBoundshave been added in order to support these use cases, as well as make it easier for developers to easily create similar custom modifiers that suit their use case exactly. I759b8- Change
setDiagnosticStackTraceEnabledto experimental to account for future development of this feature. I11db3 - Introduce
Modifier.scrollable2D,Scrollable2DStateand companion APIs for state creation. Also introduced common scroll extension functions. Ic61c8 b/214410040 - Compose 64-bit color values are not directly comparable to Android
ColorLongsbecause the color space IDs are out of order for some color spaces. To convert to and from Android color spaces, two new APIs are added:toColorLong()andfromColorLong(). I36899 - Introduced
ViewConfiguration.minimumFlingVelocityto allow lower bound fling velocity control. I11aab
API Changes
- Support Digital Credentials issuance I4e6f9
Bug Fixes
- Fixed missing Proguard rules issue in the Android artifact of
datastore-preferences-core. 3f3f6e b/413078297
Bug Fixes
- Fixed an issue with
FragmentManagernot being in the proper state after pop and replace operations in the same frame that could cause a crash in conjunction with popping the backstack either viapopBackStackor the predictive back gesture. I50ad1 - Fixed a crash caused by using AndroidX Transitions and getting into a case where quick consecutive fragment transactions attempt to cancel an unstarted transition and the AndroidX Transition library does not properly clear the transition state. (see b/414612221). Ib5235
New Features
- Add a check to warn about usages of
configurations.createandconfigurations.maybeCreateas these cause eager realization of that configuration starting with Gradle 8.14 and thus should be replaced withconfigurations.register. - Add a check to catch usages of internal Kotlin Gradle Plugin APIs
- Add a check to catch usages of
evaluationDependsOnandevaluationDependsOnChildrenas it is not safe with Isolated Projects feature.
New Features
Navigation3 is a new navigation library built specifically to handle Jetpack Compose in-app navigation. The androidx.navigation3.runtime artifact provides the building blocks, while the androidx.navigation3.ui artifact provides the UI layer via the NavDisplay API. Developers can provide their own state directly to the NavDisplay composable function, which changes the content based on changes in the developer state.
@Serialiable object Home : NavKey
@Serialiable object Chat : NavKey
val backStack = rememberNavBackStack(Home)
NavDisplay(backStack, entryProvider = entryProvider {
entry<Home> {
Column {
Text(“Home”)
Button(onClick = { backStack.add(Chat) } ) {
Text(“Go to Chat”)
}
}
}
entry<Chat> { /* My Composable Content */ }
})
For more information, see the Navigation3 guide.
New Features
- The
androidx.navigationeventlibrary provides a KMP-first API for handling system back as well as Predictive Back. TheNavigationEventDispatcherserves as a common APIs for registering one or moreNavigationEventCallbackinstances for receiving system back events. - This layer sits below the previously released APIs in
androidx.activityand aims to be a less opinionated replacement for using the Activity APIs in higher level components or directly using the Android frameworkOnBackInvokedDispatcherAPIs. Theandroidx.activityAPIs have been rewritten on top of the Navigation Event APIs as part of Activity 1.12.0-alpha01.
New Features
- Added logic to measure obstructions on
SandboxedSdkView, which will be sent inSessionObserver.onUiContainerChanged()ifSandboxedUiAdapterSignalOptions.OBSTRUCTIONSis included in the associatedSessionObserverFactory.signalOptions. Obstructions are reported relative to the view itself.
API Changes
- Moved
SandboxedSdkUifrom ui-client into a new ui-client-compose library. - Added logic to measure obstructions on UI containers. I34bea
Bug Fixes
- Fixed
SandboxedSdkView.setAlpha(), which now updates the alpha of its content view.
Important changes since 1.1.0
- Fix small mouse moves turning clicks into drags.
- Fix an issue where key/position mapping in KeyProvider was lost while entry was not yet recycled.
Bug Fixes
- Fixed
waitForStableInActiveWindowthrowing NPE in some cases Ibf50f b/417046391
Bug Fixes
- Updated baseline profiles for foundation, material & material3 libraries. I53f06
- Fixed a bug in
TransformingLazyColumn, where items resized when the bottom item was removed. Idacab - Fixed a bug with
TransformingLazyColumn, when the list got stuck at the top or bottom of the list. I49d00 OpenOnPhoneDialogunder TalkBack should announce the curved text, rather than the icon content description. I4efe8- Fixed a bug in
SwipeToRevealthat would report the wrong anchor inRevealState.currentValuewhenhasPartiallyRevealedStateis set to false. I9c7cf SwipeToRevealundo buttons are nowButtonDefaults.Heightby default. I1f6c8BasicSwipeToDismissBoxperformance has been improved by eliminating use of Canvas for drawing scrims. I68f2c- Fixed an accessibility bug in Slider, where the announced percentage did not match the value after updates I91146
- Fixed a bug on
placeholderShimmerimplementation. (Iee39b TransformingLazyColumnperformance has been improved, by optimizingScrollProgresscalculation by 30%. I4c4cb
Bug Fixes
- Updated baseline profiles for foundation, material & material3 libraries. I53f06
- Fixed a bug in
TransformingLazyColumn, where items resized when the bottom item was removed. Idacab - Fixed a bug with
TransformingLazyColumn, when the list got stuck at the top or bottom of the list. I49d00 OpenOnPhoneDialogunder TalkBack should announce the curved text, rather than the icon content description. I4efe8- Fixed a bug in
SwipeToRevealthat would report the wrong anchor inRevealState.currentValuewhenhasPartiallyRevealedStateis set to false. I9c7cf SwipeToRevealundo buttons are nowButtonDefaults.Heightby default. I1f6c8BasicSwipeToDismissBoxperformance has been improved by eliminating use of Canvas for drawing scrims. I68f2c- Fixed an accessibility bug in Slider, where the announced percentage did not match the value after updates I91146
- Fixed a bug on
placeholderShimmerimplementation. (Iee39b TransformingLazyColumnperformance has been improved, by optimizingScrollProgresscalculation by 30%. I4c4cb
- There are no changes from
1.14.0-beta01.
Important changes since 1.3.0
- Activity Embedding
- API to customize the launch animations
- Interactive Divider
ActivityStackPinning- Full Screen Dialog Dimming
- Embedded Activity Window Info Callback
- Improved
ActivityStackManagement - Launch Activity into a specified
ActivityStack
WindowMetricsCalculator- Improve testability support
WindowMetrics- Convenience methods to calculate
withDpandheightDp - Update bounds check to
isAtLeastand use lower bounds to support adding new values
- Convenience methods to calculate
WindowSizeClass- Add way to calculate from
WindowMetrics
- Add way to calculate from
WindowInfoTracker- Add API to detect the supported postures on the device