public static interface ComponentTree.MeasureListener
| Modifier and Type | Method and Description |
|---|---|
void |
onSetRootAndSizeSpec(int layoutVersion,
int width,
int height,
boolean stateUpdate)
This callback gets called every time a ComponentTree commits a new layout computation.
|
void onSetRootAndSizeSpec(int layoutVersion,
int width,
int height,
boolean stateUpdate)
layoutVersion - the layout version associated with the layout that triggered this
callbackwidth - the resulting width from the committed layout computationheight - the resulting height from the committed layout computationstateUpdate - whether this layout computation was triggered by a state update.