Android APIs
public class

DetailsOverviewRowPresenter

extends RowPresenter
java.lang.Object
   ↳ android.support.v17.leanback.widget.Presenter
     ↳ android.support.v17.leanback.widget.RowPresenter
       ↳ android.support.v17.leanback.widget.DetailsOverviewRowPresenter

Class Overview

A DetailsOverviewRowPresenter renders a DetailsOverviewRow to display an overview of an item. Typically this row will be the first row in a fragment such as the DetailsFragment.

The detailed description is rendered using a Presenter.

Summary

Nested Classes
class DetailsOverviewRowPresenter.ViewHolder A ViewHolder for the DetailsOverviewRow. 
Public Constructors
DetailsOverviewRowPresenter(Presenter detailsPresenter)
Constructor for a DetailsOverviewRowPresenter.
Public Methods
int getBackgroundColor()
Returns the background color.
OnActionClickedListener getOnActionClickedListener()
Gets the listener for Action click events.
boolean isStyleLarge()
Returns true if the layout style is large.
void setBackgroundColor(int color)
Sets the background color.
void setOnActionClickedListener(OnActionClickedListener listener)
Sets the listener for Action click events.
void setStyleLarge(boolean large)
Sets the layout style to be large or small.
Protected Methods
RowPresenter.ViewHolder createRowViewHolder(ViewGroup parent)
Called to create a ViewHolder object for a Row.
void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item)
void onUnbindRowViewHolder(RowPresenter.ViewHolder holder)
[Expand]
Inherited Methods
From class android.support.v17.leanback.widget.RowPresenter
From class android.support.v17.leanback.widget.Presenter
From class java.lang.Object

Public Constructors

public DetailsOverviewRowPresenter (Presenter detailsPresenter)

Constructor for a DetailsOverviewRowPresenter.

Parameters
detailsPresenter The Presenter used to render the detailed description of the row.

Public Methods

public int getBackgroundColor ()

Returns the background color. If no background color was set, transparent is returned.

public OnActionClickedListener getOnActionClickedListener ()

Gets the listener for Action click events.

public boolean isStyleLarge ()

Returns true if the layout style is large.

public void setBackgroundColor (int color)

Sets the background color. If not set, a default from the theme will be used.

public void setOnActionClickedListener (OnActionClickedListener listener)

Sets the listener for Action click events.

public void setStyleLarge (boolean large)

Sets the layout style to be large or small. This affects the height of the overview, including the text description. The default is large.

Protected Methods

protected RowPresenter.ViewHolder createRowViewHolder (ViewGroup parent)

Called to create a ViewHolder object for a Row. Subclasses will override this method to return a different concrete ViewHolder object.

Parameters
parent The parent View for the Row's view holder.
Returns
  • A ViewHolder for the Row's View.

protected void onBindRowViewHolder (RowPresenter.ViewHolder holder, Object item)

protected void onUnbindRowViewHolder (RowPresenter.ViewHolder holder)