setSelectedSubPositionSmooth

Changes the sub selected view and runs and animation to scroll to it.

Parameters

subPosition

index of the alignment from DpadViewHolder.getSubPositionAlignments


fun setSelectedSubPositionSmooth(position: Int, subPosition: Int)

Changes the sub selected view and runs and animation to scroll to it.

Parameters

position

Adapter position of the item to select

subPosition

index of the alignment from DpadViewHolder.getSubPositionAlignments


fun setSelectedSubPositionSmooth(position: Int, subPosition: Int, task: ViewHolderTask)

Performs a task on a ViewHolder at a given position and sub position after scrolling to it.

Parameters

position

Adapter position of the item to select

subPosition

index of the alignment from DpadViewHolder.getSubPositionAlignments

task

Task to executed on the ViewHolder at the given position