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.0.0-rc01

CoordinatorLayout.AttachedBehavior

public static interface CoordinatorLayout.AttachedBehavior

androidx.coordinatorlayout.widget.CoordinatorLayout.AttachedBehavior


Defines the default attached CoordinatorLayout.Behavior of a View class

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

Summary

Public methods

abstract Behavior getBehavior()

Returns the behavior associated with the matching View class.

Public methods

getBehavior

added in version 1.0.0
public abstract Behavior getBehavior ()

Returns the behavior associated with the matching View class.

Returns
Behavior The behavior associated with the matching View class. Must be non-null.