BoxInsetLayout.LayoutParams

Added in 1.1.0

class BoxInsetLayout.LayoutParams : FrameLayout.LayoutParams


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

Summary

Constants

const Int
BOX_ALL = 15

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

const Int

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

const Int

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

const Int

Default boxing setting.

const Int

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

const Int

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

Public constructors

Copy constructor.

Copy constructor.

Copy constructor.

Copy constructor.

LayoutParams(context: Context, attrs: AttributeSet?)

Creates a new set of layout parameters.

LayoutParams(width: Int, height: Int)

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

LayoutParams(width: Int, height: Int, gravity: Int)

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

LayoutParams(width: Int, height: Int, gravity: Int, boxed: Int)

Public properties

Int

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

Inherited Constants

From android.widget.FrameLayout.LayoutParams
From android.view.ViewGroup.LayoutParams
const Int

This property is deprecated.

const Int
const Int

Constants

BOX_ALL

Added in 1.1.0
const val BOX_ALL = 15: Int

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

BOX_BOTTOM

Added in 1.1.0
const val BOX_BOTTOM = 8: Int

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

BOX_LEFT

Added in 1.1.0
const val BOX_LEFT = 1: Int

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

BOX_NONE

Added in 1.1.0
const val BOX_NONE = 0: Int

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

BOX_RIGHT

Added in 1.1.0
const val BOX_RIGHT = 4: Int

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

BOX_TOP

Added in 1.1.0
const val BOX_TOP = 2: Int

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

Public constructors

LayoutParams

Added in 1.1.0
LayoutParams(source: BoxInsetLayout.LayoutParams)

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

Parameters
source: BoxInsetLayout.LayoutParams

The layout params to copy from.

LayoutParams

Added in 1.1.0
LayoutParams(source: FrameLayout.LayoutParams)

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

Parameters
source: FrameLayout.LayoutParams

The layout params to copy from.

LayoutParams

Added in 1.1.0
LayoutParams(source: ViewGroup.LayoutParams)

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

Parameters
source: ViewGroup.LayoutParams

The layout params to copy from.

LayoutParams

Added in 1.1.0
LayoutParams(source: ViewGroup.MarginLayoutParams)

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

Parameters
source: ViewGroup.MarginLayoutParams

The layout params to copy from.

LayoutParams

Added in 1.1.0
LayoutParams(context: Context, attrs: AttributeSet?)

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

Parameters
context: Context

the application environment

attrs: AttributeSet?

the set of attributes from which to extract the layout parameters' values

LayoutParams

Added in 1.1.0
LayoutParams(width: Int, height: Int)

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

Parameters
width: Int

the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

height: Int

the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixelsy

LayoutParams

Added in 1.1.0
LayoutParams(width: Int, height: Int, gravity: Int)

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

Parameters
width: Int

the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

height: Int

the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

gravity: Int

the gravity

See also
Gravity

LayoutParams

Added in 1.1.0
LayoutParams(width: Int, height: Int, gravity: Int, boxed: Int)

Public properties

boxedEdges

Added in 1.1.0
val boxedEdgesInt

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