public static class MultiActionsProvider.MultiAction extends Object
getIndex()
returns
the current index within the drawables. Both list of drawables and index can be updated
dynamically in the program, and the UI could be updated by notifying the listeners
provided in AbstractMediaItemPresenter.ViewHolder
.Constructor and Description |
---|
MultiAction(long id) |
Modifier and Type | Method and Description |
---|---|
Drawable |
getCurrentDrawable() |
Drawable[] |
getDrawables()
Returns the drawables used for displaying different states within this
MultiActionsProvider.MultiAction . |
long |
getId() |
int |
getIndex()
Returns the currently selected index in this MultiAction.
|
void |
incrementIndex()
Increments the index which this MultiAction currently represents.
|
void |
setDrawables(Drawable[] drawables)
Sets the drawables used for displaying different states within this
MultiActionsProvider.MultiAction . |
void |
setIndex(int index)
Sets the index which this MultiAction currently represents.
|
public void setDrawables(Drawable[] drawables)
MultiActionsProvider.MultiAction
.
The size of drawables determines the set of states this action represents.drawables
- Array of drawables for different MultiAction states.public Drawable[] getDrawables()
MultiActionsProvider.MultiAction
.MultiActionsProvider.MultiAction
.public void incrementIndex()
public void setIndex(int index)
index
- The current action index.public int getIndex()
public Drawable getCurrentDrawable()
public long getId()