belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
DetailsOverviewRow
public
class
DetailsOverviewRow
extends Row
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Row | |
↳ | android.support.v17.leanback.widget.DetailsOverviewRow |
An overview Row
for a details fragment. This row consists of an image, a
description view, and optionally a series of Action
s that can be taken for
the item.
Actions
Application usessetActionsAdapter(ObjectAdapter)
to set actions on the overview
row. SparseArrayObjectAdapter
is recommended for easily updating actions while
maintaining the order. The application can add or remove actions on the UI thread after the
row is bound to a view.
Updating main item
After the row is bound to a view, the application may callsetItem(Object)
on UI thread and the view will be updated.
Updating image
After the row is bound to view, the application may change the image by callingsetImageBitmap(Context, Bitmap)
or setImageDrawable(Drawable)
on the UI thread,
and the view will be updated.
Summary
Nested classes | |
---|---|
class |
DetailsOverviewRow.Listener
Listener for changes of DetailsOverviewRow. |
Public constructors | |
---|---|
DetailsOverviewRow(Object item)
Constructor for a DetailsOverviewRow. |
Public methods | |
---|---|
final
void
|
addAction(Action action)
This method was deprecated
in API level 22.1.0.
Use |
final
void
|
addAction(int pos, Action action)
This method was deprecated
in API level 22.1.0.
Use |
Action
|
getActionForKeyCode(int keyCode)
Returns the Action associated with the given keycode, or null if no associated action exists. |
final
List<Action>
|
getActions()
This method was deprecated
in API level 22.1.0.
Use |
final
ObjectAdapter
|
getActionsAdapter()
Returns the |
final
Drawable
|
getImageDrawable()
Returns the image drawable of this details overview. |
final
Object
|
getItem()
Returns the main item for the details page. |
boolean
|
isImageScaleUpAllowed()
Returns true if the image may be scaled up; false otherwise. |
final
boolean
|
removeAction(Action action)
|