AttachedBehavior
interface AttachedBehavior
androidx.coordinatorlayout.widget.CoordinatorLayout.AttachedBehavior |
Defines the default attached 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 LayoutParams#setBehavior
.
Summary
Public methods | |
---|---|
abstract CoordinatorLayout.Behavior<View!> |
Returns the behavior associated with the matching |
Public methods
getBehavior
@NonNull abstract fun getBehavior(): CoordinatorLayout.Behavior<View!>
Returns the behavior associated with the matching View
class.
Return | |
---|---|
CoordinatorLayout.Behavior<View!> |
The behavior associated with the matching View class. Must be non-null. |