StateSet
class StateSet
Summary
Public constructors |
|---|
StateSet(context: Context!, parser: XmlPullParser!)Parse a StateSet |
Public functions |
|
|---|---|
Int |
convertToConstraintSet(converts a state to a constraintSet |
Boolean |
needsToChange(id: Int, width: Float, height: Float)will the layout need to change |
Unit |
setOnConstraintsChanged(listen for changes in constraintSet |
Int |
stateGetConstraintID(id: Int, width: Int, height: Int)Get the constraint id for a state |
Int |
updateConstraints(currentId: Int, id: Int, width: Float, height: Float)Update the Constraints |
Public constructors
StateSet
Added in 2.2.1
StateSet(context: Context!, parser: XmlPullParser!)
Parse a StateSet
| Parameters | |
|---|---|
context: Context! |
|
parser: XmlPullParser! |
Public functions
convertToConstraintSet
Added in 2.2.1
fun convertToConstraintSet(
currentConstrainSettId: Int,
stateId: Int,
width: Float,
height: Float
): Int
converts a state to a constraintSet
| Returns | |
|---|---|
Int |
needsToChange
Added in 2.2.1
fun needsToChange(id: Int, width: Float, height: Float): Boolean
will the layout need to change
| Returns | |
|---|---|
Boolean |
setOnConstraintsChanged
Added in 2.2.1
fun setOnConstraintsChanged(
constraintsChangedListener: ConstraintsChangedListener!
): Unit
listen for changes in constraintSet
| Parameters | |
|---|---|
constraintsChangedListener: ConstraintsChangedListener! |