public interface

CoordinatorLayout.AttachedBehavior

 androidx.coordinatorlayout.widget.CoordinatorLayout.AttachedBehavior

Overview

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

Methods
public CoordinatorLayout.BehaviorgetBehavior()

Returns the behavior associated with the matching View class.

Methods

public CoordinatorLayout.Behavior getBehavior()

Returns the behavior associated with the matching View class.

Returns:

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