Most visited

Recently visited

SinglePresenterSelector

public final class SinglePresenterSelector
extends PresenterSelector

java.lang.Object
   ↳ android.support.v17.leanback.widget.PresenterSelector
     ↳ android.support.v17.leanback.widget.SinglePresenterSelector


一个PresenterSelector总是返回相同的Presenter 对于所有呈现相同方式的相同类型的项目行很有用。

Summary

Public constructors

SinglePresenterSelector(Presenter presenter)

Public methods

Presenter getPresenter(Object item)

返回给定项目的演示者。

Presenter[] getPresenters()

返回所有可能演示者的数组。

Inherited methods

From class android.support.v17.leanback.widget.PresenterSelector
From class java.lang.Object

Public constructors

SinglePresenterSelector

SinglePresenterSelector (Presenter presenter)

Parameters
presenter Presenter: The Presenter to return for every item.

Public methods

getPresenter

Presenter getPresenter (Object item)

返回给定项目的演示者。

Parameters
item Object
Returns
Presenter

getPresenters

Presenter[] getPresenters ()

返回所有可能演示者的数组。 返回的数组不应该被修改。

Returns
Presenter[]

Hooray!