Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.coordinatorlayout:coordinatorlayout:1.1.0-alpha01
Deprecated since version 1.0.0


public static abstract @interface CoordinatorLayout.DefaultBehavior
implements Annotation


This @interface was deprecated in API level 1.0.0.
Use CoordinatorLayout.AttachedBehavior instead

Defines the default CoordinatorLayout.Behavior of a View class.

When writing a custom view, use this annotation to define the default behavior when used as a direct child of an CoordinatorLayout. The default behavior can be overridden using CoordinatorLayout.LayoutParams.setBehavior(CoordinatorLayout.Behavior).

Example: @DefaultBehavior(MyBehavior.class)


Public methods

Class<? extends Behavior> value()

Inherited methods

Public methods


public Class<? extends Behavior> value ()

Class<? extends Behavior>