New Features
- Enforce required fields are provided when constructing
AppFunctionData - Validating
AppFunctionDataagainst constraint values
API Changes
- Add
AppFunctionServiceCompat API(s). I2f1b1 b/445388953
Bug Fixes
- Add required field
AppFunctionsDatacheck. I36b16 b/394553462 - Fix the issue that parameter optional state was not respected when overriding an interface.
- Generate an empty XML file even when no
AppFunctionsare present sinceAppSearchexpects the corresponding file specified in the App manifest.
API Changes
- Made
AuthTabIntent.AuthenticateUserResultContractpublic I1e598 b/425405218 - Rename the window controls overlay display mode to be consistent with other modes. I10b67
Bug Fixes
- Support
CameraEffectin concurrent camera composition mode. The effect will be applied on the composition output. Please note thatmirrorModeinVideoCapturewill be ignored when effect is set in concurrent camera composition mode. If3d00 b/425565129 - Fixed the issue where
mirrorModeis not applied correctly to the secondary camera in concurrent camera composition mode. I686cd b/446430827 - Support binding
Preview,ImageCaptureandVideoCapturetogether in concurrent camera non-composition mode. Ib410a b/443009871 - Fixed an issue where UseCases such as
ImageCaptureandVideoCapturewould lose their target rotation information if they were recreated. This could cause images or videos to have an incorrect orientation if a setting likeimageCaptureModewas changed after the device had been rotated. I477c8 b/444734537 - Fixed an issue that prevented Preview from selecting 16:9 resolutions and
VideoCapturefrom recording at QUALITY_1080P. This problem occurred when using a default Preview resolution configuration while the internalStreamSharingfeature was active (e.g., when four UseCases are bound simultaneously). I493cb b/440364875 - Fixed the crash when effect is being activated after
SurfaceProcessoris shut down I2c450 b/414150174 - Fixed a bug in
CameraControllerthat caused anIllegalStateExceptionwhen an initial UseCase selected the maximum resolution, which subsequently prevented other UseCases from being bound. Ifb758 b/440374234 - Excludes problematic YUV_420_888 output sizes for Nokia 7 Plus that will cause the silent fail problem without any error messages reported. I3af47 b/436524501
- Fixed an issue where
CameraInfo#isFeatureGroupSupportedcould incorrectly return true for thePREVIEW_STABILIZATIONfeature. This could sometimes occur when querying with aSessionConfigthat was already configured with other features. I2c355 b/437816469 - Improved
CameraXViewfinderstability on older API levels and devices withSurfaceViewissues by defaulting toTextureViewin such scenarios. This fallback mechanism is the new default but can be programmatically overridden. Ieb476 b/437496463 - Fixed a memory leak in
PreviewViewwhere it could prevent its Activity from being garbage collected. This happens if a newSurfaceRequestarrives before the previous one is handled. I4aa0b b/443112512 - Fixed high-speed/slow-motion recording failed on Huawei P smart, Infinix Hot 40i and Realme C53. 40a668e b/442984200
API Changes
- Shared transition APIs are now stable. For more information, please see the shared element guide. I7167e.
API Changes
PaddingValuesnow support addition and subtraction to simplify common padding calculations. I327e1 b/244468479
Bug Fixes
ComposeFoundationFlags.isPausableCompositionInPrefetchEnabledis enabled by default. It is a performance optimization, which allows us to distribute work we need to do during the prefetch better, for example we can only perform the composition for parts of theLazyColumn's next item during one ui frame, and then continue composing the rest of it in the next frames. I4c7fe
API Changes
- Added scrolled colors for
AppBarWithSearch. In addition, the container color of a search bar input field is now transparent by default. The default container color of the search bar itself remains unchanged. I4fe32 - Added a default overflow indicator composable to
FloatingToolbar. I6a6f8 b/415833723 - Update
isExpandedtoisShowingfor menu APIs in button group. I86309 b/412419514 - Updated
initialIsExpandedtoinitialIsShowingand added a default overflow indicator composable inButtonGroupDefaults. I6e67c b/412419514 - Remove the drag-to-resize feature from the public API surface Ic85ba b/437953743 b/442636084
Bug Fixes
- Fix focus order of keys keyboard navigation, and also fix it for RTL. Ibba27 b/422220597
- Fix date picker's year selection grid keyboard navigation. I02363 b/422425720 b/446814683
- Fixed keyboard navigation for date selection grid in date pickers. I594ef b/422220597 b/422223115
- Fixed offscreen toolbar receiving keyboard focus. I01a73 b/422786812
- Fixed
RangeSliderand Slider keyboard navigation. Ib6bcf b/424845268 b/422942624
Bug Fixes
- Set default a11y pane title to
AnimatedPanes012113 b/323387770 - Fix incorrect re-anchoring during settling ca45f9 b/442911758
New Features
ListDetailPaneScaffoldandSupportingPaneScaffoldare now supporting margins and edge-to-edge.- The
adaptive-navigation3integration library is being released as 1.3.0-alpha01 since this version (previously 1.0.0-alpha03).
API Changes
- Introduce pane margin and edge-to-edge support to
ThreePaneScaffold. If0794 b/333539848
Bug Fixes
- Fill in the stack trace for
DiagnosticComposeExceptionin release mode. Ib76cb - Fixed an issue in Snapshot state where, when using a merge policy for a type could result in the previous value to be computed incorrectly which would return a future value of the state instead of the previous value. This would occur if more than two mutable snapshots were pending and at least one of the values being applied had a merge policy. I527b5 b/442791065
Bug Fixes
- Fixed a bug where
onVisibilityChanged/onFirstVisible/onLayoutRectChangedmodifiers were not receiving callbacks if the layout being moved has over 170 descendants. 4f2fdd b/445356774
Bug Fixes
- Fixed a bug where nested Popups were incorrectly positioned at the screen's top; they now correctly anchor to their parent Popup. Id4603 b/191279752
- Fixed problem with focus wrapping with other Views in the hierarchy. I95223 b/446028624
- Fixes fields with inline parameters missing from inspector in lambdas generated by Kotlin 2.2.20 I9855d b/447110005
- Fixes name shadowing of autofill resources between UI and foundation modules I5da5a
External Contribution
UiModesobject is renamed to AndroidUiModes to reflect that its constants are lifted from Android API. Ia0a77
New Features
- Added the ability for applications to request that a specific call not be saved in the system call log, even if the app has generally opted into call logging. This feature is only effective on devices running
Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.BAKLAVA_1.
API Changes
- Introduced the optional
isLogExcludedBoolean property to theCallAttributesCompatdata class. Setting this to true requests the system to exclude the call from the call log. On older platform versions, this property has no effect. Please note that VoIP calls are not logged to the system call log by default. Developers must first explicitly opt-in their application to participate in system call logging. This requires declaring an intent handler forandroid.telecom.action.CALL_BACKin the app's manifest. The newisLogExcludedproperty provides a per-call exclusion option for apps that have already enabled this integration. d14695
New Features
- Optimized large data serialization.
New Features
- Optimized large data serialization
androidx.health.connect:connect-client:1.1.0, androidx.health.connect:connect-client-external-protobuf:1.1.0, and androidx.health.connect:connect-client-proto:1.1.0 have been promoted to its first stable release with no changes since its previous RC release.
API Changes
- Adds new Device Type enums I86ce3
New Features
SelfOverlapparameter forStockBrusheshighlighterandemojiHighlighter, which replacesInProgressStrokesViewrendererFactory- Improved implementation of stroke input smoothing, which eliminates device measurement noise but which more accurately reflects user input than the previous stroke input smoothing implementation
- Improved consistency with other Android/Jetpack APIs for angle units (degrees vs. radians), transforms (skew vs. shear), and more
API Changes
- Change angle-related API to use degrees and include unit in names, be clear about units in Angle conversion utilities and support both degrees and radians, change
StockBrushesAPI to take stock brush version as a factory function parameter and expose self-overlap behavior control for highlighter brushes, renameMutableAffineTransform.populateFromTranslatetopopulateFromTranslation, removeInProgressStrokesView.setRenderFactory/getRenderFactory. Id9eab b/436656418 - Rename shear to skew, clarify some documentation, remove
CanvasStrokeRenderer.strokeModifiedRegionOutsetPx, addInProgressStroke.changesWithTimeIa5e70 b/436656418
Bug Fixes
- Improve input modeling to make strokes more accurately reflect input. I93097
API Changes
- The
removeViewModelStoreOnPopCallback()is now part of aViewModelStoreNavEntryDecoratorDefaultobject which is where other platforms and implementations can call the default. Ia1f23 b/444447434 - Refactored
ViewModelStoreNavEntryDecoratorfrom a function to a class to better reflect its functionality as a factory forNavEntryDecorator, and renamed the decorator'sshouldRemoveViewModelStoreparameter toremoveViewModelStoreOnPopto clarify that this callback is invoked only when an entry is popped from thebackStack. Iefdc5 b/444447434
Major features of 1.0.0:
- The JankStats API allows you to measure frame performance of your app, and add context (what's happening, and where frames are being produced) into performance metrics. For more information, see the documentation.
API Changes
- The
calculateScenemethod onSceneStrategyis no longer@Composable. Instead, consider moving this work to the construction of yourSceneStrategymethod (i.e., in arememberMySceneStrategy()method) that fully allows you to define the lifetime of anyrememberSaveablevalues or keyrememberstatements off of the correct values. If1733 b/448709506 - The
onBackparameter forSceneStrategy.calculateScenehas been moved into the new receiver scope ofSceneStrategyScopeto make it more clear that this is an optional parameter and provide an extension point for future Navigation3 features. I3aea3 b/448460407 - The
onBacklambda passed intoNavDisplayand to yourSceneStrategyno longer provides acount: Intparameter to indicate when multiple entries should be popped. Instead, the() -> Unitlambda will now be called multiple times in a row in the rare case where your Scene requests popping multiple entries. Idedb5 b/446989346 - Remove the
NavEntryWrapperclass and replace its functionality with a finalNavEntryclass with a new secondary constructor that takes aNavEntrywith new content. This will allow continued support for wrapping an entry with new content. I7da2a b/444447130 - The
navEntryDecoratorfunction which creates and returns aNavEntryDecoratorhas been removed and replaced by theNavEntryDecoratorclass which is now made public and open for subclassing. If81f8 b/444447434 b/447381176 SavedStateNavEntryDecoratorhas been renamed toSaveableStateHolderNavEntryDecoratorsince it decorates entries with aSaveableStateHolder. The decorator has also been refactored from a function to a class since it is functionally a factory forNavEntryDecorator. Ie6013 b/447381176- Custom displays using
SceneStateas an alternative to usingNavDisplayno longer are required to use theLocalEntriesToRenderInCurrentScenecomposition local, which is now internal. Ic40ef b/414668196 - Removed
SceneSetupNavEntryDecoratorandrememberSceneSetupNavEntryDecorator()from the public API surface. This functionality now is included by default without requiring you to manually include it. Ieae42 b/444479133 NavEntry,DialogScene,SinglePaneScene, andSceneStatenow all implement equals. I96121- Scene interface has a new metadata field to attach scene-specific metadata for NavDisplay. This allows a Scene to override the metadata on the
NavDisplay, for instance with transitions. I1fd96 b/443955625 - Simplify
rememberNavBackStacksignature by removing the redundant generic type parameter. The function now acceptsvararg elements: NavKey. I03e45 - The default animations for
NavDisplayare now part of the common API which allows them to be called from all platforms. I71af9 b/447147159 - Rename
EntryProviderBuildertoEntryProviderScopeto accurately reflect that the class is a Kotlin DSL providing a scope to buildNavEntries. Ia7465
Bug Fixes
rememberNavBackStack()now enforces polymorphic serialization for NavKey and requires a customSavedStateConfigurationthat is configured to ensure correct state restoration. KDoc have been updated to reflect the requirement that all NavKey subtypes must be registered in the provided SerializersModule. I6de37 I782f2 b/446664383
API Changes
- Correct the
FloatRangeannotation forNavigationEvent.touchXandNavigationEvent.touchY. These values represent absolute pixel coordinates and do not have a1.0upper bound. I4b205 b/445989313 - Refactor the
NavigationEventDispatcherOwnercomposable torememberNavigationEventDispatcherOwner. The function now returns theNavigationEventDispatcherOwnerdirectly. To provide this owner to a sub-composition, useCompositionLocalProvider. I874b2 b/444446629
Bug Fixes
- Fix a deadlock that could occur when re-opening an auto-closed database from a Flow emission b/446643789.
New Features
- Added
VerticalTextLayout#isVerticalTextLayoutSupported()method to check capability of vertical text Ie2802 b/442608654
API Changes
- Introduced a graceful fallback in API < 36.I8a67a b/442608654
- Downgrade
minSDKto 23 to be used in other AndroidX libraries I2d6b5 b/442608654
Bug Fixes
- Implement missing support for
TransformingLazyColumnverticalAlignment- now supports standard arrangements that are top, bottom or center-based. I2e630 b/444143326
API Changes
- Added parameter to
TimePickerto specify the initially focused time component. The selection defaults to the first available component based on the locale andTimePickerType. Ie5dfe b/437015874 - Removed unused
targetProgressparameter inCircularProgressIndicatordrawCircularProgressIndicatormethod. Ieeb3c b/430544552
Bug Fixes
- Implement missing support for
TransformingLazyColumnverticalAlignment- now supports standard arrangements that are top, bottom or center-based. I2e630 b/444143326 - Improve curved text width computation to account for spaces before and after text (may break screenshots that include curved text, especially when it has a background like
TimeText). I924a4 b/446601899 - Updated Compose Foundation’s
WarpedCurvedTextRendererto opt forEmojiCompatInitializerfromandroidx.emoji2to fix a runtime class error. I589b4 b/444422736 - Updated
ScalingLazyColumnto focus on the scrollable node withCollectionInfo, so that it works with rotary in more contexts, such as on theMaterial3AlertDialog. I6be3c b/445332360
API Changes
- Introduces a new API to set custom request headers. This is an iteration on the previous experimental API, and now allows the application to set multiple values for each header, each mapped to a different set of origin patterns. The new API also allows the application to inspect the configured headers. Id7d30 b/419469873 b/429269470
- Removal of the X-Requested-With header in
WebViewhas been cancelled, and the header will again be sent on all requests by default. The allowlist API is no longer necessary, and has been deprecated. I884c3 b/447094379 - Add a new API to
WebSettingsCompatto allow developers to configureWebView's back-forward cache, such as setting the timeout in seconds or page cache limits. I642b2 b/432395269 - Add
HyperlinkContextMenuAPI to allow item customisation inWebViewhyperlink context menu Idb809 b/382654667 - Add
getAsyncStartUpLocationsAPI for debugging cases whereWebViewwas started up asynchronously without using thestartUpWebViewAPI. I6bf4b b/417434566