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 easy updating actions while
keeping the order. Application can add or remove actions on UI thread after the row is
bound to view.
setItem(Object)
)
on UI thread.
setImageBitmap(Context, Bitmap)
) or setImageDrawable(Drawable)
) on UI thread.
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()
| |||||||||||
This method is deprecated.
Use
setActionsAdapter(ObjectAdapter) and getActionsAdapter()
| |||||||||||
Gets
ObjectAdapter for actions.
| |||||||||||
Gets the image drawable of this details overview.
| |||||||||||
Gets 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
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()
Add an Action to the overview at the specified position. It will throw ClassCastException if
current actions adapter is not ArrayObjectAdapter
. Must be called on UI thread.
pos | The position to insert the Action. |
---|---|
action | The Action to add. |
This method is deprecated.
Use setActionsAdapter(ObjectAdapter)
and getActionsAdapter()
Add an Action to the overview. It will throw ClassCastException if current actions adapter
is not ArrayObjectAdapter
. Must be called on UI thread.
action | The Action to add. |
---|
This method is deprecated.
Use setActionsAdapter(ObjectAdapter)
and getActionsAdapter()
Gets 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.
Gets 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()
Remove 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 ObjectAdapter
for actions.
adapter | Adapter for actions, a default PresenterSelector will be attached
to the adapter if it doesn't have one.
|
---|
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.