Package 

Class CoordinatorLayout.LayoutParams

    • Method Detail

      • setAnchorId

         void setAnchorId(@IdRes() int id)

        Set the id of this view's anchor.

        The view with this id must be a descendant of the CoordinatorLayout containingthe child view this LayoutParams belongs to. It may not be the child view with thisLayoutParams or a descendant of it.

        Parameters:
        id - The view id of the anchor or NO_ID if there is noanchor
      • setBehavior

         void setBehavior(@Nullable() CoordinatorLayout.Behavior behavior)

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

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

        Parameters:
        behavior - The behavior to set or null for no special behavior