public class MeasureResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
height |
java.lang.Object |
layoutData |
boolean |
mHadExceptions |
int |
width |
Constructor and Description |
---|
MeasureResult(int width,
int height) |
MeasureResult(int width,
int height,
java.lang.Object layoutData) |
Modifier and Type | Method and Description |
---|---|
static MeasureResult |
error() |
java.lang.String |
toString() |
static MeasureResult |
withEqualDimensions(int widthSpec,
int heightSpec,
java.lang.Object layoutData)
Returns a
MeasureResult to respect both size specs and try to keep both width and
height equal. |
public final int width
public final int height
public final java.lang.Object layoutData
public final boolean mHadExceptions
public MeasureResult(int width, int height, java.lang.Object layoutData)
public MeasureResult(int width, int height)
public static MeasureResult withEqualDimensions(int widthSpec, int heightSpec, java.lang.Object layoutData)
MeasureResult
to respect both size specs and try to keep both width and
height equal. This will only not guarantee equal width and height if these specs use modes and
sizes which prevent it.public static MeasureResult error()
public java.lang.String toString()
toString
in class java.lang.Object