public enum SmoothScrollAlignmentType extends Enum<SmoothScrollAlignmentType>
Enum Constant and Description |
---|
DEFAULT
Use the layout manager's default smooth scrolling, needed for backwards compatibility because
certain layout managers implement their own smooth scrolling
|
SNAP_TO_ANY
Default alias to LinearSmoothScroller.SNAP_TO_ANY, align child top edge to viewport top or
bottom edge based on which one is closer
|
SNAP_TO_CENTER
Scroll the selected position to the center of the RecyclerView.
|
SNAP_TO_END
Default alias to LinearSmoothScroller.SNAP_TO_END, align child top edge to viewport bottom edge
|
SNAP_TO_START
Default alias to LinearSmoothScroller.SNAP_TO_START, align child top edge to viewport top edge
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static SmoothScrollAlignmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SmoothScrollAlignmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmoothScrollAlignmentType DEFAULT
public static final SmoothScrollAlignmentType SNAP_TO_ANY
public static final SmoothScrollAlignmentType SNAP_TO_START
public static final SmoothScrollAlignmentType SNAP_TO_END
public static final SmoothScrollAlignmentType SNAP_TO_CENTER
public static SmoothScrollAlignmentType[] values()
for (SmoothScrollAlignmentType c : SmoothScrollAlignmentType.values()) System.out.println(c);
public static SmoothScrollAlignmentType 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 nullpublic int getValue()