Coordinatorlayout

Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
December 4, 2019 1.1.0 - - -

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 {
    implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
}

For more information about dependencies, see Add build dependencies.

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.