setBehavior

open fun setBehavior(@Nullable behavior: @Nullable CoordinatorLayout.Behavior)(source)

Set the behavior governing the layout and interaction of the child view within a parent CoordinatorLayout.

Setting a new behavior will remove any currently associated Behavior tag.

Parameters

behavior

The behavior to set or null for no special behavior