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
open Unit
open BarrierReference
barrier(key: Any, direction: State.Direction)
open Unit

Baseline is needed for this object

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

Create a new reference given a key.

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

Gets a reference to a Flow object.

open GridReference
getGrid(key: Any, gridType: String)

Get a Grid reference

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

Does this constraintWidget need a baseline

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

Clear the state

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

Public constructors

State

Added in 1.1.1
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.1
val densityDensity

layoutDirection

Added in 1.1.1
Deprecated in 1.1.1
var layoutDirectionLayoutDirection

rootIncomingConstraints

Added in 1.1.1
var rootIncomingConstraintsConstraints