scrollTo

open fun scrollTo(pos: <Error class: unknown class>, flags: ListScrollFlags, scroll: ScrollInfo? = null)

Scrolls to the item at the given position and performs the actions specified in @flags.

This function works no matter if the listview is shown or focused. If it isn't, then the changes will take effect once that happens.

Since

4.12

Parameters

pos

position of the item. Must be less than the number of items in the view.

flags

actions to perform

scroll

details of how to perform the scroll operation or null to scroll into view