OnItemViewSelectedListener


public interface OnItemViewSelectedListener extends BaseOnItemViewSelectedListener


Interface for receiving notification when a row or item becomes selected. The concept of current selection is different than focus. A row or item can be selected without having focus; for example, when a row header view gains focus then the corresponding row view becomes selected. This interface expects row object to be sub class of Row.

Summary

Inherited methods

From androidx.leanback.widget.BaseOnItemViewSelectedListener
abstract void
onItemSelected(
    Presenter.ViewHolder itemViewHolder,
    Object item,
    RowPresenter.ViewHolder rowViewHolder,
    T row
)

Called when a row or a new item becomes selected.