ListViewAutoScrollHelper
class ListViewAutoScrollHelper : AutoScrollHelper
An implementation of AutoScrollHelper that knows how to scroll through a ListView.
Summary
Public constructors |
|---|
ListViewAutoScrollHelper(target: ListView) |
Public functions |
|
|---|---|
Boolean |
canTargetScrollHorizontally(direction: Int)Override this method to return whether the target view can be scrolled horizontally in a certain direction. |
Boolean |
canTargetScrollVertically(direction: Int)Override this method to return whether the target view can be scrolled vertically in a certain direction. |
Unit |
scrollTargetBy(deltaX: Int, deltaY: Int)Override this method to scroll the target view by the specified number of pixels. |
Inherited Constants |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||
|
Public constructors
Public functions
canTargetScrollHorizontally
fun canTargetScrollHorizontally(direction: Int): Boolean
Override this method to return whether the target view can be scrolled horizontally in a certain direction.
| Parameters | |
|---|---|
direction: Int |
Negative to check scrolling left, positive to check scrolling right. |
| Returns | |
|---|---|
Boolean |
true if the target view is able to horizontally scroll in the specified direction. |
canTargetScrollVertically
fun canTargetScrollVertically(direction: Int): Boolean
Override this method to return whether the target view can be scrolled vertically in a certain direction.
| Parameters | |
|---|---|
direction: Int |
Negative to check scrolling up, positive to check scrolling down. |
| Returns | |
|---|---|
Boolean |
true if the target view is able to vertically scroll in the specified direction. |