public enum MeasureSpecMode extends java.lang.Enum<MeasureSpecMode>
| Enum Constant and Description |
|---|
AT_MOST |
EXACTLY |
UNSPECIFIED |
| Modifier and Type | Method and Description |
|---|---|
static MeasureSpecMode |
getMode(int measureSpec)
Gets the MeasureSpecMode value that corresponds with the given
measureSpec int value.
|
int |
getModeValue()
Gets the int value associated with this mode.
|
static MeasureSpecMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MeasureSpecMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeasureSpecMode AT_MOST
public static final MeasureSpecMode EXACTLY
public static final MeasureSpecMode UNSPECIFIED
public static MeasureSpecMode[] values()
for (MeasureSpecMode c : MeasureSpecMode.values()) System.out.println(c);
public static MeasureSpecMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getModeValue()
public static MeasureSpecMode getMode(int measureSpec)
measureSpec - the measure specification passed by the platform to
View.onMeasure(int, int)