CoordinatorLayout.DefaultBehavior
public
static
abstract
@interface
CoordinatorLayout.DefaultBehavior
implements
Annotation
androidx.coordinatorlayout.widget.CoordinatorLayout.DefaultBehavior |
This @interface is deprecated.
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)
Summary
Public methods | |
---|---|
Class<? extends Behavior>
|
value()
|
Inherited methods | |
---|---|