Android APIs
public class

DetailsOverviewRow

extends Row
java.lang.Object
   ↳ android.support.v17.leanback.widget.Row
     ↳ android.support.v17.leanback.widget.DetailsOverviewRow

Class Overview

An overview row for a details fragment. This row consists of an image, a description view, and optionally a series of Actions that can be taken for the item.

Summary

Public Constructors
DetailsOverviewRow(Object item)
Constructor for a DetailsOverviewRow.
Public Methods
final void addAction(int pos, Action action)
Add an Action to the overview at the specified position.
final void addAction(Action action)
Add an Action to the overview.
final List<Action> getActions()
Gets a read-only view of the list of Actions of this details overview.
final Drawable getImageDrawable()
Gets the image drawable of this details overview.
final Object getItem()
Gets the main item for the details page.
final boolean removeAction(Action action)
Remove the given Action from the overview.
final void setImageBitmap(Context context, Bitmap bm)
Sets a Bitmap as the image of this details overview.
final void setImageDrawable(Drawable drawable)
Sets a drawable as the image of this details overview.
[Expand]
Inherited Methods
From class android.support.v17.leanback.widget.Row
From class java.lang.Object

Public Constructors

public DetailsOverviewRow (Object item)

Constructor for a DetailsOverviewRow.

Parameters
item The main item for the details page.

Public Methods

public final void addAction (int pos, Action action)

Add an Action to the overview at the specified position.

Parameters
pos The position to insert the Action.
action The Action to add.

public final void addAction (Action action)

Add an Action to the overview.

Parameters
action The Action to add.

public final List<Action> getActions ()

Gets a read-only view of the list of Actions of this details overview.

Returns
  • An unmodifiable view of the list of Actions.

public final Drawable getImageDrawable ()

Gets the image drawable of this details overview.

Returns
  • The overview's image drawable, or null if no drawable has been assigned.

public final Object getItem ()

Gets the main item for the details page.

public final boolean removeAction (Action action)

Remove the given Action from the overview.

Parameters
action The Action to remove.
Returns
  • true if the overview contained the specified Action.

public final void setImageBitmap (Context context, Bitmap bm)

Sets a Bitmap as the image of this details overview.

Parameters
context The context to retrieve display metrics from.
bm The bitmap to set.

public final void setImageDrawable (Drawable drawable)

Sets a drawable as the image of this details overview.

Parameters
drawable The drawable to set.