ListViewCompat

Added in 1.1.0
Deprecated in 1.13.0

class ListViewCompat


Helper for accessing features in ListView.

Summary

Public functions

java-static Boolean
@ReplaceWith(expression = "listView.canScrollList(direction)")
canScrollList(listView: ListView, direction: Int)

This function is deprecated.

Use canScrollList directly.

java-static Unit
@ReplaceWith(expression = "listView.scrollListBy(y)")
scrollListBy(listView: ListView, y: Int)

This function is deprecated.

Use scrollListBy directly.

Public functions

canScrollList

Added in 1.1.0
Deprecated in 1.13.0
@ReplaceWith(expression = "listView.canScrollList(direction)")
java-static fun canScrollList(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

scrollListBy

Added in 1.1.0
Deprecated in 1.13.0
@ReplaceWith(expression = "listView.scrollListBy(y)")
java-static fun scrollListBy(listView: ListView, y: Int): Unit

Scrolls the list items within the view by a specified number of pixels.

Parameters
listView: ListView

the list to scroll

y: Int

the amount of pixels to scroll by vertically