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.
Actions
Application uses 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.
Updating main item
After the row is bound to a view, the application may call setItem(Object)
on UI thread and the view will be updated.
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.
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.
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.
Removes the given Action from the overview. It will throw ClassCastException if current
actions adapter is not ArrayObjectAdapter. Must be called on UI thread.
Parameters
action
Action: The Action to remove.
Returns
boolean
true if the overview contained the specified Action.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.