public class

BoxInsetLayout.LayoutParams

extends FrameLayout.LayoutParams

 java.lang.Object

↳FrameLayout.LayoutParams

↳androidx.wear.widget.BoxInsetLayout.LayoutParams

Overview

Per-child layout information for layouts that support margins, gravity and boxedEdges. See for a list of all child view attributes that this class supports.

Summary

Fields
public static final intBOX_ALL

The view will force an inset on all of the edges of the children.

public static final intBOX_BOTTOM

The view will force an inset on the bottom edge of the children.

public static final intBOX_LEFT

The view will force an inset on the left edge of the children.

public static final intBOX_NONE

Default boxing setting.

public static final intBOX_RIGHT

The view will force an inset on the right edge of the children.

public static final intBOX_TOP

The view will force an inset on the top edge of the children.

public intboxedEdges

Specifies the screen-specific insets for each of the child edges.

Constructors
publicLayoutParams(Context context, AttributeSet attrs)

Creates a new set of layout parameters.

publicLayoutParams(FrameLayout.LayoutParams source)

Copy constructor.

publicLayoutParams(int width, int height, int gravity)

Creates a new set of layout parameters with the specified width, height and gravity.

publicLayoutParams(int width, int height, int gravity, int boxed)

publicLayoutParams(ViewGroup.LayoutParams source)

Copy constructor.

publicLayoutParams(ViewGroup.MarginLayoutParams source)

Copy constructor.

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int BOX_NONE

Default boxing setting. There are no insets forced on the child views.

public static final int BOX_LEFT

The view will force an inset on the left edge of the children.

public static final int BOX_TOP

The view will force an inset on the top edge of the children.

public static final int BOX_RIGHT

The view will force an inset on the right edge of the children.

public static final int BOX_BOTTOM

The view will force an inset on the bottom edge of the children.

public static final int BOX_ALL

The view will force an inset on all of the edges of the children.

public int boxedEdges

Specifies the screen-specific insets for each of the child edges.

Constructors

public LayoutParams(Context context, AttributeSet attrs)

Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context.

Parameters:

context: the application environment
attrs: the set of attributes from which to extract the layout parameters' values

public LayoutParams(int width, int height, int gravity)

Creates a new set of layout parameters with the specified width, height and gravity.

Parameters:

width: the width, either BoxInsetLayout.LayoutParams, BoxInsetLayout.LayoutParams or a fixed size in pixels
height: the height, either BoxInsetLayout.LayoutParams, BoxInsetLayout.LayoutParams or a fixed size in pixels
gravity: the gravity

See also:

public LayoutParams(int width, int height, int gravity, int boxed)

public LayoutParams(ViewGroup.LayoutParams source)

Copy constructor. Clones the width and height of the source.

Parameters:

source: The layout params to copy from.

public LayoutParams(ViewGroup.MarginLayoutParams source)

Copy constructor. Clones the width, height and margin values.

Parameters:

source: The layout params to copy from.

public LayoutParams(FrameLayout.LayoutParams source)

Copy constructor. Clones the width, height, margin values, and gravity of the source.

Parameters:

source: The layout params to copy from.