Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Coordinatorlayout

Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
June 5, 2019 1.0.0 - 1.1.0-beta01 -

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:

dependencies {
    def coordinatorlayout_version = "1.0.0"
    implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinatorlayout_version"
}

For more information about dependencies, see Add build dependencies.

Version 1.1.0

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.