public static enum ModelView.Size extends java.lang.Enum<ModelView.Size>
ModelView.autoLayout() to declare what layout parameters should be used to size your
view when it is added to a RecyclerView. This maps to the LayoutParams options layout_width and layout_height.| Enum Constant and Description |
|---|
MATCH_WIDTH_MATCH_HEIGHT |
MATCH_WIDTH_WRAP_HEIGHT |
NONE |
WRAP_WIDTH_MATCH_HEIGHT |
WRAP_WIDTH_WRAP_HEIGHT |
| Modifier and Type | Method and Description |
|---|---|
static ModelView.Size |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelView.Size[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelView.Size NONE
public static final ModelView.Size WRAP_WIDTH_WRAP_HEIGHT
public static final ModelView.Size WRAP_WIDTH_MATCH_HEIGHT
public static final ModelView.Size MATCH_WIDTH_WRAP_HEIGHT
public static final ModelView.Size MATCH_WIDTH_MATCH_HEIGHT
public static ModelView.Size[] values()
for (ModelView.Size c : ModelView.Size.values()) System.out.println(c);
public static ModelView.Size 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 null