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.
setActionsAdapter(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.
setItem(Object)
on UI thread and the view will be updated.
setImageBitmap(Context, Bitmap)
or setImageDrawable(Drawable)
on the UI thread,
and the view will be updated.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DetailsOverviewRow.Listener | Listener for changes of DetailsOverviewRow. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for a DetailsOverviewRow.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
setActionsAdapter(ObjectAdapter) and getActionsAdapter()
| |||||||||||
This method is deprecated.
Use
setActionsAdapter(ObjectAdapter) and getActionsAdapter()
| |||||||||||
Returns the Action associated with the given keycode, or null if no associated action exists.
| |||||||||||
This method is deprecated.
Use
setActionsAdapter(ObjectAdapter) and getActionsAdapter()
| |||||||||||
Returns the
ObjectAdapter for actions.
| |||||||||||
Returns the image drawable of this details overview.
| |||||||||||
Returns the main item for the details page.
| |||||||||||
Returns true if the image may be scaled up; false otherwise.
| |||||||||||
This method is deprecated.
Use
setActionsAdapter(ObjectAdapter) and getActionsAdapter()
| |||||||||||
Sets the
ObjectAdapter for actions.
| |||||||||||
Sets a Bitmap as the image of this details overview.
| |||||||||||
Sets a drawable as the image of this details overview.
| |||||||||||
Allows or disallows scaling up of images.
| |||||||||||
Sets the main item for the details page.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Row
| |||||||||||
From class
java.lang.Object
|
Constructor for a DetailsOverviewRow.
item | The main item for the details page. |
---|
This method is deprecated.
Use setActionsAdapter(ObjectAdapter)
and getActionsAdapter()
Adds an Action to the overview at the specified position. It will throw ClassCastException if
current actions adapter is not an instance of fArrayObjectAdapter
. Must be called
on the UI thread.
pos | The position to insert the Action. |
---|---|
action | The Action to add. |
This method is deprecated.
Use setActionsAdapter(ObjectAdapter)
and getActionsAdapter()
Adds an Action to the overview. It will throw ClassCastException if the current actions
adapter is not an instance of ArrayObjectAdapter
. Must be called on the UI thread.
action | The Action to add. |
---|
Returns the Action associated with the given keycode, or null if no associated action exists.
This method is deprecated.
Use setActionsAdapter(ObjectAdapter)
and getActionsAdapter()
Returns a read-only view of the list of Actions of this details overview. It will throw
ClassCastException if current actions adapter is not ArrayObjectAdapter
. Must be
called on UI thread.
Returns the image drawable of this details overview.
Returns true if the image may be scaled up; false otherwise.
This method is deprecated.
Use setActionsAdapter(ObjectAdapter)
and getActionsAdapter()
Removes the given Action from the overview. It will throw ClassCastException if current
actions adapter is not ArrayObjectAdapter
. Must be called on UI thread.
action | The Action to remove. |
---|
Sets the ObjectAdapter
for actions. A default PresenterSelector
will be
attached to the adapter if it doesn't have one.
adapter | Adapter for actions. |
---|
Sets a Bitmap as the image of this details overview. Must be called on UI thread after row is bound to view.
context | The context to retrieve display metrics from. |
---|---|
bm | The bitmap to set. |
Sets a drawable as the image of this details overview. Must be called on UI thread after row is bound to view.
drawable | The drawable to set. |
---|
Allows or disallows scaling up of images. Images will always be scaled down if necessary. Must be called on UI thread after row is bound to view.
Sets the main item for the details page. Must be called on UI thread after row is bound to view.