added in
version 24.1.0
belongs to Maven artifact com.android.support:coordinatorlayout:28.0.0-alpha1
Deprecated since version 27.1.0
CoordinatorLayout.DefaultBehavior
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
static
abstract
@interface
CoordinatorLayout.DefaultBehavior
implements
Annotation
android.support.design.widget.CoordinatorLayout.DefaultBehavior
This @interface was deprecated
in API level 27.1.0.
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 setBehavior(CoordinatorLayout.Behavior)
.
Example: @DefaultBehavior(MyBehavior.class)
Summary
Inherited methods
From
interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
annotationType()
abstract
boolean
equals(Object arg0)
abstract
int
hashCode()
abstract
String
toString()
Public methods
value
Class<? extends Behavior > value ()
Annotations
Interfaces
Classes
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]