class State : State


The state of the ConstraintLayout solver.

Summary

Public constructors

State(density: Density)

Public functions

open Int

Implements a conversion function for values, returning int.

Public properties

Density
LayoutDirection

This property is deprecated. Use #isLtr instead

Constraints

Inherited functions

From androidx.constraintlayout.core.state.State
Unit
BarrierReference
barrier(key: Any, direction: State.Direction)
Unit

Baseline is needed for this object

AlignHorizontallyReference
centerHorizontally(vararg references: Any)
AlignVerticallyReference
centerVertically(vararg references: Any)
ConstraintReference
ConstraintReference

Create a new reference given a key.

Unit
FlowReference
getFlow(key: Any, vertical: Boolean)

Gets a reference to a Flow object.

GridReference
getGrid(key: Any, gridType: String)

Get a Grid reference

FlowReference
getHorizontalFlow(vararg references: Any)

Get a HorizontalFlowReference and add it to references

ArrayList<String>
FlowReference
getVerticalFlow(vararg references: Any)

Get a VerticalFlowReference and add it to references

GuidelineReference
guideline(key: Any, orientation: Int)
State
height(dimension: Dimension)
HelperReference
helper(key: Any, type: State.Helper)
HorizontalChainReference
HorizontalChainReference
horizontalChain(vararg references: Any)
GuidelineReference
Boolean

Does this constraintWidget need a baseline

Unit
map(key: Any, view: Any)
Unit

Clear the state

Boolean
Boolean
State
setHeight(dimension: Dimension)
Unit
setTag(key: String, tag: String)
State
setWidth(dimension: Dimension)
VerticalChainReference
VerticalChainReference
verticalChain(vararg references: Any)
GuidelineReference
State
width(dimension: Dimension)

Public constructors

State

Added in 1.1.2
State(density: Density)

Public functions

convertDimension

open fun convertDimension(value: Any?): Int

Implements a conversion function for values, returning int. This can be used in case values (e.g. margins) are represented via an object, not directly an int.

Parameters
value: Any?

the object to convert from

Public properties

density

Added in 1.1.2
val densityDensity

layoutDirection

Added in 1.1.2
Deprecated in 1.1.2
var layoutDirectionLayoutDirection

rootIncomingConstraints

Added in 1.1.2
var rootIncomingConstraintsConstraints