public static enum Snackbar.Gravity extends java.lang.Enum<Snackbar.Gravity>
Snackbar within its container.| Enum Constant and Description |
|---|
BOTTOM
Places the
Snackbar to the bottom of its container. |
TOP
Places the
Snackbar to the top of its container. |
| Modifier and Type | Method and Description |
|---|---|
static Snackbar.Gravity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Snackbar.Gravity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Snackbar.Gravity TOP
Snackbar to the top of its container.public static final Snackbar.Gravity BOTTOM
Snackbar to the bottom of its container.public static Snackbar.Gravity[] values()
for (Snackbar.Gravity c : Snackbar.Gravity.values()) System.out.println(c);
public static Snackbar.Gravity 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