Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.support.design.widget\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \n\nandroid.support.design.widget\n=============================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\nAnnotations\n-----------\n\n|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CoordinatorLayout.DefaultBehavior](/reference/android/support/design/widget/CoordinatorLayout.DefaultBehavior) | *This @interface was deprecated in API level 27.1.0. Use [CoordinatorLayout.AttachedBehavior](/reference/android/support/design/widget/CoordinatorLayout.AttachedBehavior) instead* |\n\nInterfaces\n----------\n\n|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CoordinatorLayout.AttachedBehavior](/reference/android/support/design/widget/CoordinatorLayout.AttachedBehavior) | Defines the default attached [CoordinatorLayout.Behavior](/reference/android/support/design/widget/CoordinatorLayout.Behavior) of a [View](https://developer.android.com/reference/android/view/View.html) class When writing a custom view, implement this interface to return the default behavior when used as a direct child of an [CoordinatorLayout](/reference/android/support/design/widget/CoordinatorLayout). |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [CoordinatorLayout](/reference/android/support/design/widget/CoordinatorLayout) | CoordinatorLayout is a super-powered [FrameLayout](https://developer.android.com/reference/android/widget/FrameLayout.html). |\n| [CoordinatorLayout.Behavior](/reference/android/support/design/widget/CoordinatorLayout.Behavior)\\\u003cV extends [View](https://developer.android.com/reference/android/view/View.html)\\\u003e | Interaction behavior plugin for child views of [CoordinatorLayout](/reference/android/support/design/widget/CoordinatorLayout). |\n| [CoordinatorLayout.LayoutParams](/reference/android/support/design/widget/CoordinatorLayout.LayoutParams) | Parameters describing the desired layout for a child of a [CoordinatorLayout](/reference/android/support/design/widget/CoordinatorLayout). |\n| [CoordinatorLayout.SavedState](/reference/android/support/design/widget/CoordinatorLayout.SavedState) | |\n\n-\n\n Annotations\n -----------\n\n - [CoordinatorLayout.DefaultBehavior](/reference/android/support/design/widget/CoordinatorLayout.DefaultBehavior)\n-\n\n Interfaces\n ----------\n\n - [CoordinatorLayout.AttachedBehavior](/reference/android/support/design/widget/CoordinatorLayout.AttachedBehavior)\n-\n\n Classes\n -------\n\n - [CoordinatorLayout](/reference/android/support/design/widget/CoordinatorLayout)\n - [CoordinatorLayout.Behavior](/reference/android/support/design/widget/CoordinatorLayout.Behavior)\n - [CoordinatorLayout.LayoutParams](/reference/android/support/design/widget/CoordinatorLayout.LayoutParams)\n - [CoordinatorLayout.SavedState](/reference/android/support/design/widget/CoordinatorLayout.SavedState)"]]