FloatingActionButton.Behavior

public static class FloatingActionButton.Behavior
extends BaseBehavior<FloatingActionButton>

java.lang.Object
   ↳ androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior<T extends com.google.android.material.floatingactionbutton.FloatingActionButton>
     ↳ com.google.android.material.floatingactionbutton.FloatingActionButton.BaseBehavior<com.google.android.material.floatingactionbutton.FloatingActionButton>
       ↳ com.google.android.material.floatingactionbutton.FloatingActionButton.Behavior


Behavior designed for use with FloatingActionButton instances. Its main function is to move FloatingActionButton views so that any displayed Snackbars do not cover them.

Summary

Public constructors

Behavior()
Behavior(Context context, AttributeSet attrs)

Inherited methods

boolean getInsetDodgeRect(CoordinatorLayout parent, FloatingActionButton child, Rect rect)
boolean isAutoHideEnabled()

Returns whether the associated FloatingActionButton automatically hides when there is not enough space to be displayed.

void onAttachedToLayoutParams(CoordinatorLayout.LayoutParams lp)
boolean onDependentViewChanged(CoordinatorLayout parent, FloatingActionButton child, View dependency)
boolean onLayoutChild(CoordinatorLayout parent, FloatingActionButton child, int layoutDirection)
void setAutoHideEnabled(boolean autoHide)

Sets whether the associated FloatingActionButton automatically hides when there is not enough space to be displayed.

void setInternalAutoHideListener(FloatingActionButton.OnVisibilityChangedListener listener)
boolean blocksInteractionBelow(CoordinatorLayout arg0, V arg1)
boolean getInsetDodgeRect(CoordinatorLayout arg0, V arg1, Rect arg2)
int getScrimColor(CoordinatorLayout arg0, V arg1)
float getScrimOpacity(CoordinatorLayout arg0, V arg1)
static Object getTag(View arg0)
boolean layoutDependsOn(CoordinatorLayout arg0, V arg1, View arg2)
WindowInsetsCompat onApplyWindowInsets(CoordinatorLayout arg0, V arg1, WindowInsetsCompat arg2)
void onAttachedToLayoutParams(CoordinatorLayout.LayoutParams arg0)
boolean onDependentViewChanged(CoordinatorLayout arg0, V arg1, View arg2)
void onDependentViewRemoved(CoordinatorLayout arg0, V arg1, View arg2)
void onDetachedFromLayoutParams()
boolean onInterceptTouchEvent(CoordinatorLayout arg0, V arg1, MotionEvent arg2)
boolean onLayoutChild(CoordinatorLayout arg0, V arg1, int arg2)
boolean onMeasureChild(CoordinatorLayout arg0, V arg1, int arg2, int arg3, int arg4, int arg5)
boolean onNestedFling(CoordinatorLayout arg0, V arg1, View arg2, float arg3, float arg4, boolean arg5)
boolean onNestedPreFling(CoordinatorLayout arg0, V arg1, View arg2, float arg3, float arg4)
void onNestedPreScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int[] arg5, int arg6)
void onNestedPreScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int[] arg5)
void onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
void onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int[] arg8)
void onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6)
void onNestedScrollAccepted(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4, int arg5)
void onNestedScrollAccepted(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4)
boolean onRequestChildRectangleOnScreen(CoordinatorLayout arg0, V arg1, Rect arg2, boolean arg3)
void onRestoreInstanceState(CoordinatorLayout arg0, V arg1, Parcelable arg2)
Parcelable onSaveInstanceState(CoordinatorLayout arg0, V arg1)
boolean onStartNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4, int arg5)
boolean onStartNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4)
void onStopNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3)
void onStopNestedScroll(CoordinatorLayout arg0, V arg1, View arg2)
boolean onTouchEvent(CoordinatorLayout arg0, V arg1, MotionEvent arg2)
static void setTag(View arg0, Object arg1)
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

Public constructors

Behavior

public Behavior ()

Behavior

public Behavior (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet