public enum ScrollMode extends Enum<ScrollMode>
Enum Constant and Description |
---|
Combo
|
Free
The calendar will spin free by receiving velocity by the user via the fling gesture.
|
None
The calendar will not scroll in any direction while in this mode.
|
Overlap
The calendar will overlap the next and the previous fragments on top of the current one in each direction going from either edge of the screen and going
towards the center.
|
Plain
The calendar will follow the finger of the user exactly with no further logic.
|
Stack
The calendar will overlap the next and the previous fragments on top of the current.
|
Sticky
The calendar will stick to the current month as soon as it is not being touched or dragged.
|
Modifier and Type | Method and Description |
---|---|
static ScrollMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScrollMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScrollMode None
public static final ScrollMode Plain
public static final ScrollMode Sticky
public static final ScrollMode Free
public static final ScrollMode Combo
public static final ScrollMode Overlap
public static final ScrollMode Stack
public static ScrollMode[] values()
for (ScrollMode c : ScrollMode.values()) System.out.println(c);
public static ScrollMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null