Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Selecting an item programmatically #36

@slickorange

Description

@slickorange

How do I scroll to an item programmatically?

Also, how do I scroll "past" the beginning or end so that the first or last items of the list can also be in the center and be "selected"

I am using this for a selectable list of items.
Items can be selected either by:

  • tapping on them (triggering a scroll to put the selected item in the center)
  • scrolling until the item is in the center
  • Programmatically by updating the selected index from another function

Would this be possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions