이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

BaseOnItemViewClickedListener

public interface BaseOnItemViewClickedListener

androidx.leanback.widget.BaseOnItemViewClickedListener<T>


Interface for receiving notification when an item view holder is clicked.

Summary

Public methods

abstract void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, T row)

Called when an item inside a row gets clicked.

Public methods

onItemClicked

public abstract void onItemClicked (Presenter.ViewHolder itemViewHolder, 
                Object item, 
                RowPresenter.ViewHolder rowViewHolder, 
                T row)

Called when an item inside a row gets clicked.

Parameters
itemViewHolder Presenter.ViewHolder: The view holder of the item that is clicked.

item Object: The item that is currently selected.

rowViewHolder RowPresenter.ViewHolder: The view holder of the row which the clicked item belongs to.

row T: The row which the clicked item belongs to.