ListViewCompat
public final class ListViewCompat
Helper for accessing features in ListView.
Summary
Public methods |
|
|---|---|
static boolean |
@ReplaceWith(expression = "listView.canScrollList(direction)")This method is deprecated. Use |
static void |
@ReplaceWith(expression = "listView.scrollListBy(y)")This method is deprecated. Use |
Public methods
@ReplaceWith(expression = "listView.canScrollList(direction)")
public static booleancanScrollList(@NonNull ListView listView, int direction)
Check if the items in the list can be scrolled in a certain direction.
| Parameters | |
|---|---|
@NonNull ListView listView |
ListView for which to check the state. |
int direction |
Negative to check scrolling up, positive to check scrolling down. |
| Returns | |
|---|---|
boolean |
true if the list can be scrolled in the specified direction, false otherwise. |
| See also | |
|---|---|
scrollListBy |
@ReplaceWith(expression = "listView.scrollListBy(y)")
public static voidscrollListBy(@NonNull ListView listView, int y)
Scrolls the list items within the view by a specified number of pixels.