LayoutParams

Parameters describing the desired layout for a child of a CoordinatorLayout.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int)
constructor(@NonNull p: @NonNull CoordinatorLayout.LayoutParams)
constructor(@NonNull p: @NonNull ViewGroup.MarginLayoutParams)
constructor(p: @NonNull ViewGroup.LayoutParams)

Properties

Link copied to clipboard
open var anchorGravity: Int
A Gravity value describing which edge of a child view's anchor view the child should position itself relative to.
Link copied to clipboard
A Gravity value describing how this child view dodges any inset child views in the CoordinatorLayout.
Link copied to clipboard
open var gravity: Int
A Gravity value describing how this child view should lay out.
Link copied to clipboard
open var insetEdge: Int
A Gravity value describing how this child view insets the CoordinatorLayout.
Link copied to clipboard
open var keyline: Int
The index of the horizontal keyline specified to the parent CoordinatorLayout that this child should align relative to.

Functions

Link copied to clipboard
open fun getAnchorId(): Int
Get the id of this view's anchor.
Link copied to clipboard
@Nullable
open fun getBehavior(): @Nullable CoordinatorLayout.Behavior
Get the behavior governing the layout and interaction of the child view within a parent CoordinatorLayout.
Link copied to clipboard
open fun setAnchorId(@IdRes id: Int)
Set the id of this view's anchor.
Link copied to clipboard
open fun setBehavior(@Nullable behavior: @Nullable CoordinatorLayout.Behavior)
Set the behavior governing the layout and interaction of the child view within a parent CoordinatorLayout.