Bug Fixes
- From Activity 1.12.4: The Photo and Video
ActivityResultContractsnow will correctly launch when being used on devices with the latest URI security fixes. I61201 b/433708587
API Changes
- Removes
@ExperimentalOpenInBrowserannotation for official release I538fd b/414825188
Bug Fixes
- Improve performance of
sharedElementsmap access. 93f57d
Bug Fixes
- Fixed a regression bug where using an alignment modifier from a different scope (e.g.,
ColumnScope.aligninside aRow) resulted in incorrect positioning. 6888f2b b/477639546
API Changes
- Introduces an experimental style API that allows a consistent way to enable customization of composable functions. This API is under active development and may undergo significant changes before becoming stable. See included documentation for details of how to use this API. I7fed2 b/455788242
Bug Fixes
Modifier.combinedClickableis rewritten to not use suspend pointer input as an optimization. This feature is enabled by the flag you can disable if encounter a bug in the new implementation -ComposeFoundationFlags.isNonSuspendingPointerInputInCombinedClickableEnabled.Iea684
Known Issues
- The
Modifier.combinedClickablerewrite introduces a regression for long click behavior that can cause deep presses to trigger repeated long clicks on some devices. This will be fixed in the next release, until then you can setComposeFoundationFlags.isNonSuspendingPointerInputInCombinedClickableEnabled=falseto avoid this problem.
New Features
- Scrim component introduced for use alongside Modal components. I29555 b/455862212 b/372395682 b/375853129
- Introduces standalone static sheet component. I0ef95 b/455862212 b/350779977 b/444176963 b/336349080
API Changes
MaterialThemehas been refactored to use a singleCompositionLocalfor theme data. Composition locals can now be accessed throughMaterialTheme.LocalMaterialTheme.current, orcurrentValueOf(MaterialTheme.LocalMaterialTheme)inCompositionLocalAccessorScopeIdee2e b/483676974- Update default content padding of the expressive text button to correct specs. Also remove deprecation of
TextButtonContentPaddingandTextButtonWithIconContentPadding. I67283 - Introduce parameter to disable backhandler from
BottomSheetIff81e b/483763626 - Graduate motion scheme from experimental If822f b/484003769
- Added 'enabled' and 'threshold' parameters to
PullToRefreshBoxin Material3. I5610b b/369044003 - Replace
horizontalSpacingwithhorizontalArrangementinFilterChipandElevatedFilterChip. AddhorizontalArrangementdefaults toFilterChipDefaults. If3d6a b/304853782 - Improved KDoc for
TopAppBarDefaultsscroll behaviors to better explain usage with reversed and pre-scrolled content. I247dd b/405129274 - Replace
horizontalSpacingparameter withhorizontalArrangmenetparameter. AddhorizontalArrangementdefaults toAssistChipDefaults. I15cec b/304853782 - Add getter for
shouldUsePrecisionPointerComponentSizingI234ce - Added overloads to
TopAppBarDefaults.enterAlwaysScrollBehaviorandTopAppBarDefaults.pinnedScrollBehaviorthat accept anisAtTopStateparameter. This allows for customat top statedetection when using the scroll behaviors. I785b9 b/405129274 - Add
contentPaddingandhorizontalArrangementparameters toInputChipandElevatedInputChip. AddhorizontalArrangementandcontentPaddingdefaults toInputChipDefaults. Iae39c b/304853782 - Added precision pointer sizing and paddings for Buttons and deprecated obsolete
TextButtonContentPaddingval. I6d7b6 b/479879803 - Added
rememberWithGapSearchBarStateto be used withExpandedDockedSearchBarWithGap. Ia3361
Bug Fixes
- Fixes the issue shadows are not showing for levitated panes Ie6108 b/470517507
- Update
TextButtonsto have correct material3 paddings specs. In order to opt out and revert to the old behavior you should setisTextButtonContentPaddingFixEnabledto false in your application. I66c8e
API Changes
- Deprecated
NavDisplaysthat takes aSceneStrategychained bytheninfix and replaced withNavDisplaythat takes aList<SceneStrategy>I78b2c b/482108465
Bug Fixes
- Fixes the issue shadows are not showing for levitated panes. Ie6108 b/470517507
API Changes
- The
ComposeUiFlags.areWindowInsetsRulersEnabledflag has been replaced with theComposeView.disableWindowInsetsRulers()API. Idcdb4 b/455590696 - Moved the experimental Android-only feature flag
isAccessibilityShowOnScreenNestedScrollingEnabledto I1c13a - Add support for walking up I1c13a
- Report off-screen semantics nodes that are children of partially visible merging nodes in scrollable containers for better user experience with screen readers and similar accessibility services I71df9 b/434782764
- When
AndroidComposeUiFlags.isSharedClipboardManagerEnabledis true, clipboard-related instances can be shared acrossComposeViewsusingComposeViewContextI65e2c ComposeUiFlags.isRectManagerOffsetUsageFromLayoutCoordinatesEnabledwas removed I6e14a b/455601894
Bug Fixes
- Fixes the fall back mechanism for Pre-U create credential flow on devices with an unsupported GMSCore version.
New Features
DataStorenow supportsandroidx.tracingon the Android target platform. You can create aDataStorewith tracing by providing aandroidx.tracing.Tracerinstance to theDataStoreFactory.createWithTracing()function. I71bc2 b/427722902
New Features
- Adding
SuperSamplingparameter toSpatialExternalSurfacesIcd4d1
Known Issues
- An issue with
SurfaceEntityin SceneCore can cause apps to crash when creating instances ofSpatialExternalSurface. This issue is resolved inandroidx.xr.scenecore:scenecore-*:1.0.0-alpha13,androidx.xr.compose:compose:1.0.0-alpha12, and their subsequent releases. Affected apps should update to the latest versions.
API Changes
- Subspace modifier padding changes for layout direction awareness. I53e25
SpatialCapabilitiesis now sealed and cannot be extended. I07aef- The
SpatialRowandSpatialColumnAPIs that accept a genericSpatialAlignmentparameter are deprecated; instead, use the APIs that accept eitherverticalAlignmentorhorizontalAlignmentforSpatialRowandSpatialColumn, respectively. Iec390 - Combining overloading
SubspaceLayoutfunction APIs Idd30a - Renamed
SubspaceModifier.lookAtUsertorotateToLookAtUserand theupparameter toupDirection. Icafb8 - Making
SpatialRowan inline function Ia2f20 - Making
SpatialColumnan inline function I681be - Removed billboard API Ib76cd
Known Issues
- Anchored entities may snap from their anchored position to the activity space origin after several seconds.
- Apps might crash when creating
SurfaceEntityinstances. This issue is resolved inandroidx.xr.scenecore:scenecore-*:1.0.0-alpha13and subsequent releases. Affected apps should update to the latest versions.
API Changes
ActivitySpace.addOnSpaceUpdatedListenerandActivitySpace.removeOnSpaceUpdatedListenerhave been renamed toaddOnOriginChangedListenerandremoveOnOriginChangedListener.AnchorEntity.setOnSpaceUpdatedListenerhas been renamed tosetOnOriginChangedListener. I5d8fb- Added public name property to
FakeEntityand made view public onFakePanelEntity. Ifa1f9
Bug Fixes
- Fixed pixel density calculations on newer system images I57d04
New Features
- Support all Kotlin Multiplatform (KMP) targets in ViewModel-Compose. Decouple owner resolution from
LocalViewto allow platform hosts to provide a defaultViewModelStoreOwnerwhile maintainingLocalViewas a safe fallback on Android. I09fab b/434940570 Ic8526 b/478146897
API Changes
- Add a
toStringimplementation toViewModelStorethat lists all stored keys to help streamline debugging. I0a6f4 - Add a default implementation for
HasDefaultViewModelProviderFactory.defaultViewModelProviderFactory, meaning you no longer need to override this property explicitly when implementing the interface. Ia7095 - Annotate
ViewModel.onClearedwith@EmptySuperto explicitly indicate that overriding methods do not need to callsuper.onCleared(). I8c226
API Changes
- Subspace modifier padding changes for layout direction awareness I53e25 b/475290780 b/474410590
Use the 1.10.0 stable version.
API Changes
NavDisplayandrememberSceneStatenow take aList<SceneStrategy>instead of the previous singleSceneStrategyparameter that was chained by thetheninfix. This more closely aligns with theList<SceneDecoratorStrategy<T>>that both of these APIs already take. The previous APIs have been deprecated. I78b2c b/482108465- Added a metadata #contains operator to check if the metadata map contains the given
NavMetadataKey. Ic30db b/485311895 - Added
NavMetadataKeyDialogKeyforDialogSceneStrategyto use with Metadata DSL. Ic7a26 b/483388817
New Features
- Support all Kotlin Multiplatform (KMP) targets in NavigationEvent-Compose. Decouple owner resolution from
LocalViewto allow platform hosts to provide a defaultLocalNavigationEventDispatcherOwnerwhile maintainingLocalViewas a safe fallback on Android. Iae980 b/434940570 Iccf58
API Changes
- Add
NavigationEvent.toBackEvent()andBackEvent.toNavigationEvent()extension functions to convert between Android'sBackEventandNavigationEvent. Ie3b71 b/477001292
New Features
- External Hardware Interaction: Full support for keyboard shortcuts and mouse events is now available in the
PdfViewerlibrary .- Keyboard Navigation & Controls:
- Zooming: Use Ctrl + + or Ctrl + = to zoom in, Ctrl + - to zoom out, and Ctrl + 0 to snap the document to "fit to width".
- Scrolling: Standard arrow keys (D-pad) allow for scrolling up, down, left, and right, including jumping to the next or previous page when at boundaries.
- Selection: Use Ctrl + C to quickly copy currently selected content.
- Enhanced Mouse Support:
- Scroll Wheel: Support for vertical and horizontal scrolling. Use Ctrl + Scroll Wheel to zoom the document relative to the mouse cursor position.
- Selection: Click and drag with the primary mouse button to select text.
- Form & Widget Improvements:
- Added a Custom choice option for Comboboxes.
- The form widget edit callback now triggers for all edit text updates
API Changes
- Expose
PdfDocumentfromPdfViewerFragmentviaonDocumentLoadSuccess(pdfDocument). I4b47d b/481616017
Bug Fixes
- Avoid parceling Bitmap in
ImageSelectionto preventRuntimeExceptionwhen saving instance state I07bab. - Disable annotation features while PDF search is active to improve focus Ia9866.
- Ensure highlight start/finish requests are always processed I9a863.
- Focus the selected color palette item or brush slider when opened Ie7a75.
- Update form widget edit callback to trigger for all edit text updates Icebe6.
- Fix discard dialog disappearing after configuration changes I71a39.
- Fix drawing extending outside of page boundaries I88bd5.
- Clear text selection when entering edit mode I26fb9.
- Fix text widget not updated after tap on another widget I5dffc.
New Features
- Introduced
fillParentMaxWidthandfillParentMaxHeight. 4c6d77c
API Changes
- Expose common Remote Composable and Modifier types Id1d40
- Expose types for
RemoteStateI22429 b/465453482
Bug Fixes
New Features
- Improved performance for the Perfetto Trace Sink implementation by using the
suspendCoroutineUninterceptedOrReturnintrinsic 2ea97b.
Important changes since 1.3.0:
- Bugfix to vertically center
ConfirmationOverlayicon when there's no message. I496d8
The 1.6.0-beta01 release of Compose for Wear OS indicates that this release of the library is feature complete and the API is locked (except where marked as experimental). Wear Compose 1.6.0-beta01 includes the following new functionality:
- Wear Compose Navigation3 library, which integrates with the Navigation 3 library’s
NavDisplayandSceneStrategycomponents, adding Wear-specific swipe-to-dismiss logic using our newSwipeDismissableSceneStrategy. - Added
TransformingLazyColumnsupport forreverseLayout, snapping usingTransformingLazyColumnDefaults.snapFlingBehaviorandModifier.minimumVerticalContentPadding, which allows defining a preferred content padding for items in the list when they are at the top or bottom edges. - Added new overloads for
AlertDialogwhich use aTransformingLazyColumnfor consistency with scrolling in other Material3 screens. - Improved curved text rendering, particularly for cursive fonts, with the introduction of text-warping via the new
CurvedTextStyleparameterwarpOffset, which is turned on by default for API 34 onwards. - Added
LocalAmbientModeManager, a newCompositionLocalthat supports defining different UI and behavior for interactive and ambient modes. - Updated
TimePickerto support a newMinutesSecondstype and include a newinitialSelectionparameter to specify the initially selected time component. - New overloads on Cards to provide non-clickable variants where the cards are presentational only and are not intended to respond to user clicks.
- Added
LocalRippleConfigurationto provide control over ripple appearance. - Introduced
snapSensitivityparameter forRotaryScrollableDefaults.snapBehaviorandPagerScaffoldDefaultsnow includes the recommended default values forSnapPositionalThresholdandHighSnapPositionalThresholdfor use withPagerDefaults.snapFlingBehavior.
API Changes
- Renamed recommended default values for
Modifier.minimumVerticalContentPaddingfromminimumListVerticalContentPaddingtominimumVerticalListContentPaddingto emphasize that this content padding refers to the list, and updated associated documentation. I496ca b/426154225 - Curved text now does warping by default, improving curved text rendering, especially for cursive fonts. I6979d b/450526792 b/481617443
Bug Fixes
- Fix interaction between TLCs
animateItemandminimumVerticalContentPadding. Ia865c b/483663045 - Warped offset for curved text is now only on by default for API 34 onwards, due to dependency on
PathIteratorfrom theandroidx.graphics.pathlibrary which is unavailable for developer testing under Robolectric before API 34 (hence breaking existing developer tests). Ie5bae b/484319336 - Make warped curved text more robust. If2b34 b/483390353
- Updated
ConfirmationDialogDefaults.SuccessIconto ignore RTL layout direction so that the check mark is not reversed. Ic6add b/481966029
Bug Fixes
- Clean up saved resources on Tile remove event.
Important changes since 1.2.0:
- The wear watchface APIs (watchface, watchface-client, watchface-client-guava, watchface-complications-rendering, watchface-data, watchface-editor, watchface-editor-guava, and watchface-style) have been deprecated in favor of the Wear Watchface Format, and will eventually be removed from AndroidX. The complication APIs are not deprecated and will remain. Ice960
- Added support for static complication previews 8b2bed3
- The utility class
ComplicationTextFormattinghas been added with support for formatting data and time as tersely as possible, which is useful for complications where space is very much at a premium.
Important changes since 1.1.0:
- Updated
RemoteActivityHelper.startRemoteActivityto use a new public Wear SDK API (startRemoteActivity) if it’s available (from Wear 6 onwards). Id1e77 - Updated dependency on Play Basement version which contained CVE-2022-2390 vulnerability.
API Changes
- Restricted
ConfigModeinterface to internal use Ibfb87 - Moved
androidx.xr.runtime.Config.GeospatialModeto package level Ibe682 - Moved
androidx.xr.runtime.Config.FaceTrackingModeto package level Iac501 - Moved
androidx.xr.runtime.Config.AnchorPersistenceModeto package level I0360f - Moved
androidx.xr.runtime.Config.DepthEstimationModeto package level I7e3e9 - Moved
androidx.xr.runtime.Config.DeviceTrackingModeto package level I3aacd - Moved
androidx.xr.runtime.Config.HandTrackingModeto package level I658f3 - Moved
androidx.xr.runtime.Config.PlaneTrackingModeto package level Ia251b - Moved
androidx.xr.runtime.XrDevice.DisplayBlendModeto package level I6f333 - Added a factory method to create an
XrDeviceusing a Context, Session and aCoroutineContext. I139c5 - Added
SpatialApiVersionHelperto help query the runtime version of Android XR available on the platform. I7c53c - Added
xr:runtime:runtime-openxrmodule Ib42ea