public enum ContentDensity extends java.lang.Enum<ContentDensity>
| Modifier and Type | Method and Description |
|---|---|
static ContentDensity |
getDensityForSize(android.content.Context context) |
static ContentDensity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContentDensity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentDensity x0_75
public static final ContentDensity x1_00
public static final ContentDensity x1_50
public static final ContentDensity x2_00
public static ContentDensity[] values()
for (ContentDensity c : ContentDensity.values()) System.out.println(c);
public static ContentDensity 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 static ContentDensity getDensityForSize(android.content.Context context)