Coordinatorlayout

  
Position top-level application widgets, such as AppBarLayout and FloatingActionButton.
Latest Update Stable Release Release Candidate Beta Release Alpha Release
October 4, 2023 1.2.0 - - 1.3.0-alpha02

Declaring dependencies

To add a dependency on CoordinatorLayout, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

dependencies {
    implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0"
}

Kotlin

dependencies {
    implementation("androidx.coordinatorlayout:coordinatorlayout:1.2.0")
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.3

Version 1.3.0-alpha02

October 4, 2023

androidx.coordinatorlayout:coordinatorlayout:1.3.0-alpha02 is released. Version 1.3.0-alpha02 contains these commits.

  • A version bump release, no change from 1.3.0-alpha01.

Version 1.3.0-alpha01

September 20, 2023

androidx.coordinatorlayout:coordinatorlayout:1.3.0-alpha01 is released. Version 1.3.0-alpha01 contains these commits.

New Features

  • Adds support for page up, page down, move home, and move end key events. (14719d3)

API Changes

Bug Fixes

  • Fixes up, down, spacebar and key variation keyboard actions with NestedScrollView and CoordinatorLayout. (bdd72e6)

Version 1.2

Version 1.2.0

January 12, 2022

androidx.coordinatorlayout:coordinatorlayout:1.2.0 is released. Version 1.2.0 contains these commits.

Important changes since 1.1.0

  • Only retain runtime visible annotations in CoordinatorLayout rules (9ec7cb)

Version 1.2.0-rc01

December 15, 2021

androidx.coordinatorlayout:coordinatorlayout:1.2.0-rc01 is released. Version 1.2.0-rc01 contains these commits.

Version 1.2.0-beta01

November 17, 2021

androidx.coordinatorlayout:coordinatorlayout:1.2.0-beta01 is released. Version 1.2.0-beta01 contains these commits.

API Changes

  • APIs have been finalized for beta.

Version 1.2.0-alpha01

November 3, 2021

androidx.coordinatorlayout:coordinatorlayout:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.

Bug Fixes

  • Only retain runtime visible annotations in CoordinatorLayout rules (9ec7cb)

Version 1.1.0

Version 1.1.0

December 4, 2019

androidx.coordinatorlayout:coordinatorlayout:1.1.0 is released. Version 1.1.0 contains these commits.

Important changes since 1.0.0

  • aosp/737190: CoordinatorLayout now implements NestedScrollingParent3 and CoordinatorLayout.Behavior implements a new overload of onNestedScroll to enable Behaviors to be able to report how much scroll distance they consume to nested scrolling children (during the dispatchNestedScroll()/onNestedScroll() pass). The previously existing onNestedScroll(CoordinatorLayout, V, View, int, int, int, int, int) has been deprecated in favor of the new onNestedScroll(CoordinatorLayout, V, View, int, int, int, int, int, int[]) and Behavior implementations should be updated accordingly. If developer code currently overrides CoordinatorLayout#onNestedScroll(View, int, int, int, int, int), it will likely no longer be called and CoordinatorLayout#onNestedScroll(View, int, int, int, int, int, int[]) should be overridden instead.
  • Exposed CoordinatorLayout to accessibility services (aosp/1056175)
  • The CoordinatorLayout.DefaultBehavior annotation is deprecated. Use the CoordinatorLayout.AttachedBehavior interface instead.

Version 1.1.0-rc01

October 23, 2019

androidx.coordinatorlayout:coordinatorlayout:1.1.0-rc01 is released. Version 1.1.0-rc01 contains these commits.

New features

  • Exposed CoordinatorLayout to accessibility services (aosp/1056175)

Version 1.1.0-beta01

June 5, 2019

androidx.coordinatorlayout:coordinatorlayout:1.1.0-beta01 are released. The commits included in this version can be found here.

Bug fixes

  • Migrate away from deprecated test classes (aosp/853955)

Version 1.1.0-alpha01

December 3, 2018

API changes

  • aosp/737190: CoordinatorLayout now implements NestedScrollingParent3 and CoordinatorLayout.Behavior implements a new overload of onNestedScroll to enable Behaviors to be able to report how much scroll distance they consume to nested scrolling children (during the dispatchNestedScroll()/onNestedScroll() pass). The previously existing onNestedScroll(CoordinatorLayout, V, View, int, int, int, int, int) has been deprecated in favor of the new onNestedScroll(CoordinatorLayout, V, View, int, int, int, int, int, int[]) and Behavior implementations should be updated accordingly.

    If developer code currently overrides CoordinatorLayout#onNestedScroll(View, int, int, int, int, int), it will likely no longer be called and CoordinatorLayout#onNestedScroll(View, int, int, int, int, int, int[]) should be overridden instead.