public class BasicMeasure


Implements basic measure for linear resolution

Summary

Nested types

public interface BasicMeasure.Measurer

Constants

static final int
AT_MOST = -2147483648
static final int
EXACTLY = 1073741824
static final int
FIXED = -3
static final int
static final int
static final int

Public constructors

BasicMeasure(ConstraintWidgetContainer constraintWidgetContainer)

Public methods

long
solverMeasure(
    ConstraintWidgetContainer layout,
    int optimizationLevel,
    int paddingX,
    int paddingY,
    int widthMode,
    int widthSize,
    int heightMode,
    int heightSize,
    int lastMeasureWidth,
    int lastMeasureHeight
)

Called by ConstraintLayout onMeasure()

void

Constants

AT_MOST

Added in 1.1.0-rc01
public static final int AT_MOST = -2147483648

EXACTLY

Added in 1.1.0-rc01
public static final int EXACTLY = 1073741824

FIXED

Added in 1.1.0-rc01
public static final int FIXED = -3

MATCH_PARENT

Added in 1.1.0-rc01
public static final int MATCH_PARENT = -1

UNSPECIFIED

Added in 1.1.0-rc01
public static final int UNSPECIFIED = 0

WRAP_CONTENT

Added in 1.1.0-rc01
public static final int WRAP_CONTENT = -2

Public constructors

BasicMeasure

Added in 1.1.0-rc01
public BasicMeasure(ConstraintWidgetContainer constraintWidgetContainer)

Public methods

solverMeasure

Added in 1.1.0-rc01
public long solverMeasure(
    ConstraintWidgetContainer layout,
    int optimizationLevel,
    int paddingX,
    int paddingY,
    int widthMode,
    int widthSize,
    int heightMode,
    int heightSize,
    int lastMeasureWidth,
    int lastMeasureHeight
)

Called by ConstraintLayout onMeasure()

updateHierarchy

Added in 1.1.0-rc01
public void updateHierarchy(ConstraintWidgetContainer layout)