public class MeasureSpecUtils
extends java.lang.Object
Constructor and Description |
---|
MeasureSpecUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areMeasureSpecsEquivalent(int specA,
int specB) |
static int |
atMost(int px) |
static int |
exactly(int px) |
static java.lang.String |
getMeasureSpecDescription(int measureSpec) |
static java.lang.String |
getModeDescription(int mode) |
static boolean |
isMeasureSpecCompatible(int oldSizeSpec,
int sizeSpec,
int oldMeasuredSize) |
static int |
unspecified() |
public static int unspecified()
public static int atMost(int px)
public static int exactly(int px)
public static boolean areMeasureSpecsEquivalent(int specA, int specB)
public static boolean isMeasureSpecCompatible(int oldSizeSpec, int sizeSpec, int oldMeasuredSize)
public static java.lang.String getMeasureSpecDescription(int measureSpec)
public static java.lang.String getModeDescription(int mode)