Most visited

Recently visited

DividerPresenter

public class DividerPresenter
extends Presenter

java.lang.Object
   ↳ android.support.v17.leanback.widget.Presenter
     ↳ android.support.v17.leanback.widget.DividerPresenter


DividerPresenter为 DividerRow中的DividerRow提供默认演示文稿。

Summary

Public constructors

DividerPresenter()

Public methods

void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item)

View绑定到一个项目。

Presenter.ViewHolder onCreateViewHolder(ViewGroup parent)

创建一个新的 View

void onUnbindViewHolder(Presenter.ViewHolder viewHolder)

从项目中 View绑定 View

Inherited methods

From class android.support.v17.leanback.widget.Presenter
From class java.lang.Object
From interface android.support.v17.leanback.widget.FacetProvider

Public constructors

DividerPresenter

DividerPresenter ()

Public methods

onBindViewHolder

void onBindViewHolder (Presenter.ViewHolder viewHolder, 
                Object item)

View绑定到一个项目。

Parameters
viewHolder Presenter.ViewHolder
item Object

onCreateViewHolder

Presenter.ViewHolder onCreateViewHolder (ViewGroup parent)

创建一个新的 View

Parameters
parent ViewGroup
Returns
Presenter.ViewHolder

onUnbindViewHolder

void onUnbindViewHolder (Presenter.ViewHolder viewHolder)

从物品中View绑定View 任何昂贵的参考资料可能会在此处发布,并且任何未绑定到每个项目的字段都应在此处清除。

Parameters
viewHolder Presenter.ViewHolder

Hooray!