@Retention(value=RUNTIME) public static @interface CoordinatorLayout.DefaultBehavior
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(android.support.design.widget.CoordinatorLayout.Behavior)
.
Example: @DefaultBehavior(MyBehavior.class)
Modifier and Type | Required Element and Description |
---|---|
Class<? extends CoordinatorLayout.Behavior> |
value |
public abstract Class<? extends CoordinatorLayout.Behavior> value