public class DividerPresenter
extends Presenter
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Presenter | |
↳ | android.support.v17.leanback.widget.DividerPresenter |
DividerPresenter为 DividerRow
中的DividerRow提供默认演示文稿。
Public constructors |
|
---|---|
DividerPresenter() |
Public methods |
|
---|---|
void |
onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) 将 |
Presenter.ViewHolder |
onCreateViewHolder(ViewGroup parent) 创建一个新的 |
void |
onUnbindViewHolder(Presenter.ViewHolder viewHolder) |
Inherited methods |
|
---|---|
From class android.support.v17.leanback.widget.Presenter
|
|
From class java.lang.Object
|
|
From interface android.support.v17.leanback.widget.FacetProvider
|
DividerPresenter ()
void onBindViewHolder (Presenter.ViewHolder viewHolder, Object item)
将 View
绑定到一个项目。
Parameters | |
---|---|
viewHolder |
Presenter.ViewHolder
|
item |
Object
|
Presenter.ViewHolder onCreateViewHolder (ViewGroup parent)
创建一个新的 View
。
Parameters | |
---|---|
parent |
ViewGroup
|
Returns | |
---|---|
Presenter.ViewHolder |
void onUnbindViewHolder (Presenter.ViewHolder viewHolder)
从物品中View
绑定View
。 任何昂贵的参考资料可能会在此处发布,并且任何未绑定到每个项目的字段都应在此处清除。
Parameters | |
---|---|
viewHolder |
Presenter.ViewHolder
|