added in version 24.1.0
belongs to Maven artifact


public static class CoordinatorLayout.LayoutParams
extends ViewGroup.MarginLayoutParams

   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams

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


Inherited constants

From class android.view.ViewGroup.LayoutParams


public int anchorGravity

A Gravity value describing which edge of a child view's anchor view the child should position itself relative to.

public int dodgeInsetEdges

A Gravity value describing how this child view dodges any inset child views in the CoordinatorLayout.

public int gravity

A Gravity value describing how this child view should lay out.

public int insetEdge

A Gravity value describing how this child view insets the CoordinatorLayout.

public int keyline

The index of the horizontal keyline specified to the parent CoordinatorLayout that this child should align relative to.

Inherited fields

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Public constructors

CoordinatorLayout.LayoutParams(int width, int height)
CoordinatorLayout.LayoutParams(CoordinatorLayout.LayoutParams p)
CoordinatorLayout.LayoutParams(ViewGroup.MarginLayoutParams p)
CoordinatorLayout.LayoutParams(ViewGroup.LayoutParams p)

Public methods

int getAnchorId()

Get the id of this view's anchor.

Behavior getBehavior()

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