public final class SinglePresenterSelector
extends PresenterSelector
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.PresenterSelector | |
↳ | android.support.v17.leanback.widget.SinglePresenterSelector |
一个PresenterSelector
总是返回相同的Presenter
。 对于所有呈现相同方式的相同类型的项目行很有用。
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
|
SinglePresenterSelector (Presenter presenter)
Parameters | |
---|---|
presenter |
Presenter : The Presenter to return for every item. |
Presenter getPresenter (Object item)
返回给定项目的演示者。
Parameters | |
---|---|
item |
Object
|
Returns | |
---|---|
Presenter |