Constraints.LayoutParams


class Constraints.LayoutParams : ConstraintLayout.LayoutParams


Summary

Public constructors

LayoutParams(width: Int, height: Int)

Inherited Constants

From androidx.constraintlayout.widget.ConstraintLayout.LayoutParams
const Int

The baseline of the text in a view.

const Int
BOTTOM = 4

The bottom side of a view.

const Int

Chain packed style

const Int

Chain spread style

const Int

Chain spread inside style

const Int
CIRCLE = 8

Circle reference from a view.

const Int
END = 7

The right side of a view in left to right languages.

const Int
GONE_UNSET = -2147483648

Defines an id that is not set.

const Int

The horizontal orientation.

const Int
LEFT = 1

The left side of a view.

const Int

Dimension will be controlled by constraints.

const Int

Set matchConstraintDefault* percent to be based on a percent of another dimension (by default, the parent) Use to set the matchConstraintDefaultWidth and matchConstraintDefaultHeight

const Int

Set matchConstraintDefault* spread as much as possible within its constraints.

const Int

Set matchConstraintDefault* default to the wrap content size.

const Int

References the id of the parent.

const Int
RIGHT = 2

The right side of a view.

const Int
START = 6

The left side of a view in left to right languages.

const Int
TOP = 3

The top of a view.

const Int
UNSET = -1

Defines an id that is not set.

const Int

The vertical orientation.

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

This property is deprecated.

const Int
const Int

Inherited functions

From androidx.constraintlayout.widget.ConstraintLayout.LayoutParams
String!

Tag that can be used to identify a view as being a member of a group.

ConstraintWidget!
Unit

Reset the ConstraintWidget

Unit
resolveLayoutDirection(layoutDirection: Int)
Unit
Unit

validate the layout

From android.view.ViewGroup.LayoutParams
Unit
setBaseAttributes(a: TypedArray!, widthAttr: Int, heightAttr: Int)
From android.view.ViewGroup.MarginLayoutParams

Inherited properties

From androidx.constraintlayout.widget.ConstraintLayout.LayoutParams
Int

The baseline margin.

Int

Constrains the baseline of a child to the baseline of a target child (contains the target child id).

Int

Constrains the baseline of a child to the bottom of a target child (contains the target child id).

Int

Constrains the baseline of a child to the top of a target child (contains the target child id).

Int

Constrains the bottom side of a child to the bottom side of a target child (contains the target child id).

Int

Constrains the bottom side of a child to the top side of a target child (contains the target child id).

Float

The angle used for a circular constraint]

Int

Constrains the center of a child to the center of a target child (contains the target child id).

Int

The radius used for a circular constraint

Boolean

Specify if the vertical dimension is constrained in case both top &bottom constraints are set and the widget dimension is not a fixed dimension.

Boolean

Specify if the horizontal dimension is constrained in case both left &right constraints are set and the widget dimension is not a fixed dimension.

String!

Define a category of view to be used by helpers and motionLayout

String!

The ratio information.

Int

The design time location of the left side of the child.

Int

The design time location of the right side of the child.

Int

Constrains the end side of a child to the end side of a target child (contains the target child id).

Int

Constrains the end side of a child to the start side of a target child (contains the target child id).

Int

The baseline margin to use when the target is gone.

Int

The bottom margin to use when the target is gone.

Int

The end margin to use when the target is gone.

Int

The left margin to use when the target is gone.

Int

The right margin to use when the target is gone

Int

The start margin to use when the target is gone.

Int

The top margin to use when the target is gone.

Int

The distance of child (guideline) to the top or left edge of its parent.

Int

The distance of child (guideline) to the bottom or right edge of its parent.

Float

The ratio of the distance to the parent's sides

Boolean

The ratio of the distance to the parent's sides

Boolean
Float

The ratio between two connections when the left and right (or start and end) sides are constrained.

Int

If the child is the start of a horizontal chain, this attribute will drive how the elements of the chain will be positioned.

Float

The child's weight that we can use to distribute the available horizontal space in a chain, if the dimension behaviour is set to MATCH_CONSTRAINT

Int

Constrains the left side of a child to the left side of a target child (contains the target child id).

Int

Constrains the left side of a child to the right side of a target child (contains the target child id).

Int

Define how the widget vertical dimension is handled when set to MATCH_CONSTRAINT

Int

Define how the widget horizontal dimension is handled when set to MATCH_CONSTRAINT

Int

Specify a maximum height size for the widget.

Int

Specify a maximum width size for the widget.

Int

Specify a minimum height size for the widget.

Int

Specify a minimum width size for the widget.

Float

Specify the percentage when using the match constraint percent mode.

Float

Specify the percentage when using the match constraint percent mode.

Int
Int

Constrains the right side of a child to the left side of a target child (contains the target child id).

Int

Constrains the right side of a child to the right side of a target child (contains the target child id).

Int

Constrains the start side of a child to the end side of a target child (contains the target child id).

Int

Constrains the start side of a child to the start side of a target child (contains the target child id).

Int

Constrains the top side of a child to the bottom side of a target child (contains the target child id).

Int

Constrains the top side of a child to the top side of a target child (contains the target child id).

Float

The ratio between two connections when the top and bottom sides are constrained.

Int

If the child is the start of a vertical chain, this attribute will drive how the elements of the chain will be positioned.

Float

The child's weight that we can use to distribute the available vertical space in a chain, if the dimension behaviour is set to MATCH_CONSTRAINT

Int

Specify how this view is taken in account during the parent's wrap computation Can be either of: WRAP_BEHAVIOR_INCLUDED the widget is taken in account for the wrap (default) WRAP_BEHAVIOR_HORIZONTAL_ONLY the widget will be included in the wrap only horizontally WRAP_BEHAVIOR_VERTICAL_ONLY the widget will be included in the wrap only vertically WRAP_BEHAVIOR_SKIPPED the widget is not part of the wrap computation

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

Public constructors

LayoutParams

Added in 2.2.0
LayoutParams(source: Constraints.LayoutParams!)

LayoutParams

Added in 2.2.0
LayoutParams(c: Context!, attrs: AttributeSet!)

LayoutParams

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

Public properties

alpha

Added in 2.2.0
val alphaFloat

applyElevation

Added in 2.2.0
val applyElevationBoolean

elevation

Added in 2.2.0
val elevationFloat

rotation

Added in 2.2.0
val rotationFloat

rotationX

Added in 2.2.0
val rotationXFloat

rotationY

Added in 2.2.0
val rotationYFloat

scaleX

Added in 2.2.0
val scaleXFloat

scaleY

Added in 2.2.0
val scaleYFloat

transformPivotX

Added in 2.2.0
val transformPivotXFloat

transformPivotY

Added in 2.2.0
val transformPivotYFloat

translationX

Added in 2.2.0
val translationXFloat

translationY

Added in 2.2.0
val translationYFloat

translationZ

Added in 2.2.0
val translationZFloat