Android APIs
public final class

SinglePresenterSelector

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

Class Overview

A PresenterSelector that always returns the same Presenter. Useful for rows of items of the same type that are all rendered the same way.

Summary

Public Constructors
SinglePresenterSelector(Presenter presenter)
Public Methods
Presenter getPresenter(Object item)
Returns a presenter for the given item.
[Expand]
Inherited Methods
From class android.support.v17.leanback.widget.PresenterSelector
From class java.lang.Object

Public Constructors

public SinglePresenterSelector (Presenter presenter)

Parameters
presenter The Presenter to return for every item.

Public Methods

public Presenter getPresenter (Object item)

Returns a presenter for the given item.