Google 致力于为黑人社区推动种族平等。查看具体举措

ListViewAutoScrollHelper

open class ListViewAutoScrollHelper : AutoScrollHelper
kotlin.Any
   ↳ androidx.core.widget.AutoScrollHelper
   ↳ androidx.core.widget.ListViewAutoScrollHelper

An implementation of AutoScrollHelper that knows how to scroll through a ListView.

Summary

Inherited constants
Public constructors
<init>(@NonNull target: ListView)

Public methods
open Boolean

open Boolean

open Unit
scrollTargetBy(deltaX: Int, deltaY: Int)

Inherited functions

Public constructors

<init>

ListViewAutoScrollHelper(@NonNull target: ListView)

Public methods

canTargetScrollHorizontally

open fun canTargetScrollHorizontally(direction: Int): Boolean

canTargetScrollVertically

open fun canTargetScrollVertically(direction: Int): Boolean

scrollTargetBy

open fun scrollTargetBy(
    deltaX: Int,
    deltaY: Int
): Unit