ListViewCompat
class ListViewCompat
Helper for accessing features in ListView.
Summary
Public functions |
|
|---|---|
java-static Boolean |
@ReplaceWith(expression = "listView.canScrollList(direction)")This function is deprecated. Use |
java-static Unit |
@ReplaceWith(expression = "listView.scrollListBy(y)")This function is deprecated. Use |
Public functions
@ReplaceWith(expression = "listView.canScrollList(direction)")
java-static funcanScrollList(listView: ListView, direction: Int): Boolean
Check if the items in the list can be scrolled in a certain direction.
| Parameters | |
|---|---|
listView: ListView |
ListView for which to check the state. |
direction: Int |
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)")
java-static funscrollListBy(listView: ListView, y: Int): Unit
Scrolls the list items within the view by a specified number of pixels.