setAnchorId

open fun setAnchorId(@IdRes id: Int)(source)

Set the id of this view's anchor.

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

Parameters

id

The view id of the anchor or NO_ID if there is no anchor