class BasicMeasure


Implements basic measure for linear resolution

Summary

Nested types

Constants

const Int
AT_MOST = -2147483648
const Int
EXACTLY = 1073741824
const Int
FIXED = -3
const Int
const Int
const Int

Public constructors

BasicMeasure(constraintWidgetContainer: ConstraintWidgetContainer!)

Public functions

Long
solverMeasure(
    layout: ConstraintWidgetContainer!,
    optimizationLevel: Int,
    paddingX: Int,
    paddingY: Int,
    widthMode: Int,
    widthSize: Int,
    heightMode: Int,
    heightSize: Int,
    lastMeasureWidth: Int,
    lastMeasureHeight: Int
)

Called by ConstraintLayout onMeasure()

Unit

Constants

AT_MOST

Added in 1.1.0
const val AT_MOST = -2147483648: Int

EXACTLY

Added in 1.1.0
const val EXACTLY = 1073741824: Int

FIXED

Added in 1.1.0
const val FIXED = -3: Int

MATCH_PARENT

Added in 1.1.0
const val MATCH_PARENT = -1: Int

UNSPECIFIED

Added in 1.1.0
const val UNSPECIFIED = 0: Int

WRAP_CONTENT

Added in 1.1.0
const val WRAP_CONTENT = -2: Int

Public constructors

BasicMeasure

Added in 1.1.0
BasicMeasure(constraintWidgetContainer: ConstraintWidgetContainer!)

Public functions

solverMeasure

Added in 1.1.0
fun solverMeasure(
    layout: ConstraintWidgetContainer!,
    optimizationLevel: Int,
    paddingX: Int,
    paddingY: Int,
    widthMode: Int,
    widthSize: Int,
    heightMode: Int,
    heightSize: Int,
    lastMeasureWidth: Int,
    lastMeasureHeight: Int
): Long

Called by ConstraintLayout onMeasure()

updateHierarchy

Added in 1.1.0
fun updateHierarchy(layout: ConstraintWidgetContainer!): Unit