Google 致力于为黑人社区推动种族平等。查看具体举措

ViewHolder

open class ViewHolder : RowPresenter.ViewHolder
kotlin.Any
   ↳ androidx.leanback.widget.Presenter.ViewHolder
   ↳ androidx.leanback.widget.RowPresenter.ViewHolder
   ↳ androidx.leanback.widget.ListRowPresenter.ViewHolder

ViewHolder for the ListRowPresenter.

Summary

Public constructors
<init>(rootView: View!, gridView: HorizontalGridView!, p: ListRowPresenter!)

Public methods
ItemBridgeAdapter!

Gets ItemBridgeAdapter that creates the list of items.

HorizontalGridView!

Gets HorizontalGridView that shows a list of items.

open Presenter.ViewHolder!

Gets ViewHolder at a position in adapter.

ListRowPresenter!

Gets ListRowPresenter that creates this ViewHolder.

open Any!

open Presenter.ViewHolder!

open Int

Gets selected item position in adapter.

Inherited functions