November 19, 2025

Important changes since 1.11.0:

  • The Androidx Activity library is now dependent on the new NavigationEvent library. This includes support for the NavigationEventDispatcher in ComponentActivity and ComponentDialog. The OnBackPressed APIs have also been rewritten on top of the NavigationEvent APIs to ensure it is backward compatible with the previous library.

New Features

  • ARCore for Jetpack XR now supports devices where Google Play Services for AR is available.
  • Added Geospatial APIs for VPS Availability and pose conversion I144dc

New Features

  • Added an Image to Rows, which enables new list use cases.
  • Add SectionedItemTemplate#alphabeticalIndexingStrategy to allow different alphabetic indexing for list accelerators.

API Changes

  • Added an endImageType for endImages in Rows I8865b
  • Add SectionedItemTemplate#alphabeticalIndexingStrategy. This is a replacement to #isAlphabeticalIndexingAllowed and gives developers more options for alphabetical indexing. Ia164d b/410092683
  • Add support for an end Image to a car app Row. If93f0
  • Added CarIcon MediaPlayback to simplify use of standard action MediaPlayback. Ib6cb7

Bug Fixes

API Changes

  • unveilIn and veilOut options are now available for EnterExitTransitions. This allows to animate an overlay layer in front of the entering or exiting content. If26fe

Bug Fixes

  • Support bounds tracking through detaching & reattaching of sharedElement be0e9e
  • Make shared element map observable for transition activeness observation. 1fc2ec

New Features

  • Adding expressive menu updates. This includes a new toggleable menu item, selectable menu item, menu groups, and menu popup. It also includes new expressive menu default values in MenuDefaults. I5cdd4 b/417731597 b/448646125 b/448646896 b/448646891
  • The Modifier.minimumInteractiveComponentSize now provides two new public AlignmentLines: MinimumInteractiveTopAlignmentLine and MinimumInteractiveLeftAlignmentLine. These lines mark the visual edges of a component before extra space is added to meet minimum touch target requirements. I7f485 b/458124197
  • Added ExpandedDockedSearchBarWithGap. Idb7f8

API Changes

Bug Fixes

  • Add tooltip to floating toolbar's default overflow button. Ife952 b/422781172
  • Fix WideNavigationRail's indicator being cut if its set to a larger width via a larger label size. I9d740 b/444728723
  • Update split button trailing buttons to center the icon optically depending on the given shape even in RTL. Icab82

New Features

  • Added KMP Web support in DataStore by using the sessionStorage API. This feature allows DataStore to persist data temporarily within a single browser tab. I60fad b/316376114

API Changes

  • EmojiMetadata typeface specified as non null. Ic727f b/236341259
  • EmojiCompat correctly sets EditorInfo.extras on Android R I1ea9b b/196452690
  • Custom widgets that use IME not subclassing EditText may call EmojiCompat.updateEditorInfo to inform IME that they support EmojiCompat processing. I1ea9b b/196452690

Bug Fixes

API Changes

  • Experimental custom low latency shape APIs, assorted bug fixes Ib8d2f

Bug Fixes

  • Improve floating point precision on StrokeInputBatch serialization, fixing a drift in the values from repeated encoding and decoding
  • More robust system input sanitization.
  • Fix brush texture support in InProgressStrokes composable

New Features

  • Adds an API for retrieving a ScenePose that represents the composition of the perception space origin pose and a pose with respect to the perception space origin. I5b50a
  • Added getGravityAlignedPose function. The gravity aligned pose ignores the Pitch and Roll of rotation. I5ae21
  • AnchorEntity.State constant types have been changed from Ints to State subtypes. Ib0c49
  • Added getChildren() to Entity interface. Updated MainPanelEntity lifecycle. Ia69d6

API Changes

  • PointerCaptureComponent.PointerCaptureState constant types have been changed from Ints to PointerCaptureState subtypes. Ic888a
  • Scene.spatialCapabilities is now of type Set<SpatialCapability> instead of an Int field. The SpatialCapability constants have been renamed. I9c109
  • SurfaceEntity constant types have been renamed and changed from Ints to SurfaceEntity subtypes. I419ed
  • SpatializerConstant constant types have been renamed and changed from Ints to SpatializerConstant subtypes. Ia0e18
  • TextureSampler constant types have been renamed and changed from Ints to TextureSampler subtypes. I44078
  • SpatialVisibility constant types have been changed from Ints to SpatialVisibility subtypes. I70739
  • ResizeEvent.ResizeState constant types have been renamed and changed from Ints to ResizeState subtypes. I384d5
  • InputEvent constant types have been renamed and changed from Ints to inherit from their respective enclosing type. I82817
  • GltfModelEntity.AnimationState constant types have been changed from Ints to AnimationState subtypes. I24f4e
  • AlphaMode constant types have been renamed and changed from Ints to AlphaMode subtypes. I27b56
  • Space constant types have been changed from Ints to Space subtypes. I9255b
  • ScenePose.hitTest and related methods now return null if no intersection was found, instead of a HitTestResult with a null hitPosition. HitTestResult.hitPosition is no longer nullable. I1400a
  • Changed references of ActivityPose to ScenePose. I7fe43

Important changes since 2.9.0:

  • Add a rememberLifecycleOwner composable to enable creating scoped lifecycles directly within the UI. This is useful for components that need to manage their own lifecycles independently such as a HorizontalPager that wants to only make the current page RESUMED or libraries like Navigation3:

    @Composable
    fun MyComposable() {
        // This LifecycleOwner is automatically moved to DESTROYED when
        // it leaves composition and its maxLifecycle is the maximum of either
        // the maxLifecycle you set or the Lifecycle.State of the parentLifecycleOwner
        val lifecycleOwner = rememberLifecycleOwner(
            maxLifecycle = RESUMED,
            parentLifecycleOwner = LocalLifecycleOwner.current,
        )
        CompositionLocalProvider(LocalLifecycleOwner provides lifecycleOwner) {
            val childLifecycleOwner = LocalLifecycleOwner.current
        }
    }
    
  • The lifecycle-viewmodel-navigation3 artifact provides a prebuilt integration for Navigation3, allowing you to enable scoping ViewModel instances to individual screens (‘entries’) by using the rememberViewModelStoreNavEntryDecorator() API:

    @Composable
    fun MyComposable() {
        NavDisplay(
            backStack = backStack,
            entryDecorators =
                listOf(
                    rememberSaveableStateHolderNavEntryDecorator(),
                    // Add this line to automatically scope ViewModels to each entry
                    rememberViewModelStoreNavEntryDecorator(),
                ),
            entryProvider = entryProvider {
                // Add your entries here
            }
        }
    }
    
  • Add a builder factory function for CreationExtras, providing a more convenient and idiomatic Kotlin API.

    override val defaultViewModelCreationExtras: CreationExtras
        // Use the CreationExtras builder to add in a custom value to the default
        // CreationExtras in your Activity or Fragment
        get() = super.defaultViewModelCreationExtras + CreationExtras {
            this[CustomKey] = "customValue"
       }
    
  • Add native support for nullable types in SavedStateHandle.saved, simplifying saving and restoring nullable properties.

  • Mark SavedStateHandle constructors as @VisibleForTesting.

  • The minSdk has changed from API 21 to API 23.

Major features of 1.0.0:

The Navigation Event library is now stable! Navigation Event is the AndroidX library for handling system level interactions such as system-back and predictive back in Android (and other platforms).

  • To handle NavigationEvents, you can implement your own NavigationEventHandler that overrides the desired functions. You then need to add the handler to a NavigationEventDispatcher. Starting with the Activity 1.12.0 release, ComponentActivity implements the new NavigationEventDispatcherOwner interface, which provides a dispatcher that is ready to use :

    // The NavigationEventInfo provides information about a navigation state
    object CurrentInfo : NavigationEventInfo()
    
    // you can retrieve this from any component that is a NavigationEventDispatcherOwner
    // or you can instantiate your own custom dispatcher
    val dispatcher = myActivity.navigationEventDispatcher
    
    val myHandler = object : NavigationEventHandler<NavigationEventInfo>(
                initialInfo = CurrentInfo,
                isBackEnabled = true
            ) {
                override fun onBackStarted(event: NavigationEvent) {
                    // Prepare for the back event
                }
    
                override fun onBackProgressed(event: NavigationEvent) {
                    // Use event.progress for predictive animations
                }
    
                // This is the required method for final event handling
                override fun onBackCompleted() {
                    // Complete the back event
                }
    
                override fun onBackCancelled() {
                    // Cancel the back event
                }
            }
    
    dispatcher.addHandler(myHandler)
    
  • The navigationevent:navigationevent-compose module provides a convenient compose function NavigationBackHandler that automatically hooks up the handler to the closest LocalNavigationEventDispatcherOwner’s NavigationEventDispatcher and allows developers to provide the desired behavior as parameters:

    object CurrentInfo : NavigationEventInfo()
    object PreviousInfo : NavigationEventInfo()
    
    val navEventState = rememberNavigationEventState(
      currentInfo = CurrentInfo,
      backInfo = PreviousInfo
    )
    
    // Inside composition
    NavigationBackHandler(
        State = navEventState,
        isBackEnabled = true,
        // optional
        onBackCancelled = { // Cancel the back event },
        // required
        onBackCompleted = { // Complete the back event } ,
    )
    

Using this pattern in Compose makes it very easy to hoist the NavigationEventState and allow it to be observed by different Composable (i.e. in the case of Navigation3, where you can hoist the state out of the NavDisplay).

  • Each NavigationEventDispatcher has the ability to provide a parent dispatcher, for both the compose and non-compose cases. This allows developers to create a hierarchical structure where several dispatchers can be managed by a single parent. Having a parent makes handling groups of dispatchers that might need to be disabled or disposed, relatively simple:

    // Non-Compose
    val parentDispatcher = NavigationEventDispatcher()
    val childDispatcher = NavigationEventDispatcher(parent = parentDispatcher)
    
    // Compose
    val composeChildDispatcher = rememberNavigationEventDispatcher(
        // This defaults to `LocalNavigationEventDispatcherOwner.current`
        // Must explicitly provide null to have an unparented dispatcher created here
        parent = NavigationEventDispatch() 
    )
    
  • The library also makes it possible to provide signals directly to the NavigationEventDispatcher via a NavigationEventInput. NavigationEventInputs acts as the "input" side of the navigation system, translating platform-specific events (like system back gestures or button clicks) into standardized events that can be sent to a NavigationEventDispatcher. The navigationevent:navigationevent module currently provides 2 NavigationEventInputs: a more generic DirectNavigationEventInput to allow any event to be dispatched and an Android specific OnBackInvokedInput that allows a NavigationEventDispatcher to support system back and the predictive back gesture. If you implement your own dispatcher (instead of using the one provided by ComponentActivity) you must manually add your input:

    val dispatcher = NavigationEventDispatcher()
    
    dispatcher.addInput(DirectNavigationEventInput())
    dispatcher.addInput(OnBackInvokedDefaultInput(invoker))
    

API Changes

  • The Slices framework has been deprecated, it will not receive any update moving forward. If you are looking for a framework that handles communication across apps, consider using AppSearchManager. Ie09cb b/207128063

Bug Fixes

  • Added a prepared statement cache to Room’s connection pool when using a SQLiteDriver that does not internally have a pool, such as the BundledSQLiteDriver. This improves performance on repeated execution of the same SQL statement. 5f43bc b/319653917
  • Fix an issue where the actual / expected error message on schema validation was missing information. 8b23da b/454531083
  • Fix an issue with Room’s Kotlin code generation missing @Transaction DAO functions with type variables. a8365d b/251316420
  • Improve Room’s SupportSQLite Wrapper performance by avoiding thread hops maintaining the same blocking behaviour as the SupportSQLiteDatabase APIs. fc70e4

Bug Fixes

  • Improve BundledSQLiteDriver performance by using @FastNative to improve JNI calls. 952b92 b/313895287
  • Enable extended error codes on the SQLite connections created by BundledSQLiteDriver. This means error messages coming from SQLite will have a more detailed code which is useful for diagnosing I/O issues and constraint violations. f1ec6f

Bug Fixes

  • Support for 16KB page sizes b7a7dd
  • Removed manual outlining of access to new platform APIs since this happens automatically via API modeling when using R8 with AGP 7.3 or later (e.g. R8 version 3.3) and for all builds when using AGP 8.1 or later (e.g. D8 version 8.1). Clients who are not using AGP are advised to update to D8 version 8.1 or later. See this article for more details. Ia60e0 b/345472586
  • Avoid bundling copies of FastNative/CriticalNative in the library, and use the stable platform copies. I8238a b/35664282 b/280878596

API Changes

  • Introduce RotarySnapSensitivity for rotary snap behavior and PagerSensitivity for pager fling behavior, to allow applications to adjust the sensitivity level of rotary and fling behavior, especially for pagers. Ic3a83 b/449949891
  • Simplified changes to rememberTransformingLazyColumnState that were made with the introduction of reverse layout for TransformingLazyColumn, consolidating to a single function and using a sentinel value to use the default anchor index. I09302 b/453731755
  • Added a new default GenericFailureIcon to be used in FailureConfirmationDialog, which shows a generic error icon. Renamed existing FailureIcon to ConnectionFailureIcon. I8e965 b/453730430

Bug Fixes

  • Made TimePicker more robust when parsing complex locale patterns. I7b169 b/456538838
  • Fixed the initial TransformingLazyColumn layout when verticalArrangement is Arrangement.Center. Id18ef b/451481233
  • Aligned TransformingLazyColumnState constructor with rememberTransformingLazyColumnState function I36d6a b/453731755
  • Updated the tick icon for CheckboxButton to be rounded. Ie645e b/378645751
  • Updated the tick icon for SwitchButton to be rounded. I31fbf b/378642590
  • Corrected scrollToItem offset in TransformingLazyColumn which was inverting the scrolling direction. Ib2c93 b/451481233
  • Improved SwitchButton and SplitSwitchButton performance. I708de b/448781327

API Changes

  • Add experimental WebViewBuilder APIs I06828 b/409740828
  • Add UiThreadStartupMode for async startup that stops isMultiProcessEnabled() call from startup up Chromium I524ee b/397372092
  • Hiding UserAgent form factor until 1.16 release Ibac8a b/430554841 b/454438418
  • Update navigation API to allow applications to provide NavigationListener instances, which can optionally be configured with a custom Executor for background thread callbacks. Multiple NavigationListener instances can now be added to a single WebView.
    Additionally, this update also adds timing information to the onFirstContentfulPaint callback, providing the time information from navigation start to the paint event. I6aa8e b/448580228
  • Adds Profile#addQuicHints which allows apps to tell WebView to prefer QUIC / HTTP3 when connecting to the provided origins. I8e364 b/445339041
  • Updated feature constants with experimental annotations, and updated library README with more information about experimental APIs. I1b914

Bug Fixes

New Features

  • XrDevice added to provide information about device capabilities. Ic9d1f
  • Added new ConfigMode.isSupported API for querying session capabilities. Iff7af
  • Added XrDisplay.BlendMode API. I484e4

API Changes

  • Renamed [XrDevice.getPreferredBlendMode] to [XrDevice.getPreferredDisplayBlendMode]. I7e48f