public class DependencyGraph


Summary

Public constructors

Public methods

void
void
void

Find and mark terminal widgets (trailing widgets) -- they are the only ones we need to care for wrap_content checks

boolean
directMeasure(boolean optimizeWrap)

Try to measure the layout by solving the graph of constraints directly

boolean
directMeasureSetup(boolean optimizeWrap)
boolean
directMeasureWithOrientation(boolean optimizeWrap, int orientation)
void

Invalidate the graph of constraints

void

Mark the widgets as needing to be remeasured

void
void

Public constructors

DependencyGraph

Added in 1.1.0
public DependencyGraph(ConstraintWidgetContainer container)

Public methods

buildGraph

Added in 1.1.0
public void buildGraph()

buildGraph

Added in 1.1.0
public void buildGraph(ArrayList<WidgetRun> runs)

defineTerminalWidgets

Added in 1.1.0
public void defineTerminalWidgets(
    ConstraintWidget.DimensionBehaviour horizontalBehavior,
    ConstraintWidget.DimensionBehaviour verticalBehavior
)

Find and mark terminal widgets (trailing widgets) -- they are the only ones we need to care for wrap_content checks

directMeasure

Added in 1.1.0
public boolean directMeasure(boolean optimizeWrap)

Try to measure the layout by solving the graph of constraints directly

Parameters
boolean optimizeWrap

use the wrap_content optimizer

Returns
boolean

true if all widgets have been resolved

directMeasureSetup

Added in 1.1.0
public boolean directMeasureSetup(boolean optimizeWrap)

directMeasureWithOrientation

Added in 1.1.0
public boolean directMeasureWithOrientation(boolean optimizeWrap, int orientation)

invalidateGraph

Added in 1.1.0
public void invalidateGraph()

Invalidate the graph of constraints

invalidateMeasures

Added in 1.1.0
public void invalidateMeasures()

Mark the widgets as needing to be remeasured

measureWidgets

Added in 1.1.0
public void measureWidgets()

setMeasurer

Added in 1.1.0
public void setMeasurer(BasicMeasure.Measurer measurer)