DefaultBehavior
classDefaultBehavior
androidx.coordinatorlayout.widget.CoordinatorLayout.DefaultBehavior |
Defines the default 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 LayoutParams#setBehavior
.
Example: @DefaultBehavior(MyBehavior.class)
Summary
Public constructors | |
---|---|
<init>(value: KClass<out CoordinatorLayout.Behavior<View!>!>) |
Properties | |
---|---|
KClass<out CoordinatorLayout.Behavior<View!>!> |
Public constructors
<init>
DefaultBehavior(value: KClass<out CoordinatorLayout.Behavior<View!>!>)
Deprecated: Use AttachedBehavior
instead
Defines the default 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 LayoutParams#setBehavior
.
Example: @DefaultBehavior(MyBehavior.class)
Properties
value
val value: KClass<out CoordinatorLayout.Behavior<View!>!>