public abstract static class PlaybackControlsRow.MultiAction extends Action
Constructor and Description |
---|
MultiAction(int id)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getActionCount()
Returns the number of actions.
|
Drawable |
getDrawable(int index)
Returns the drawable at the given index.
|
int |
getIndex()
Returns the current index.
|
String |
getLabel(int index)
Returns the label at the given index.
|
String |
getSecondaryLabel(int index)
Returns the secondary label at the given index.
|
void |
nextIndex()
Increments the index, wrapping to zero once the end is reached.
|
void |
setDrawables(Drawable[] drawables)
Sets the array of drawables.
|
void |
setIndex(int index)
Sets the current index.
|
void |
setLabels(String[] labels)
Sets the array of strings used as labels.
|
void |
setSecondaryLabels(String[] labels)
Sets the array of strings used as secondary labels.
|
addKeyCode, getIcon, getId, getLabel1, getLabel2, removeKeyCode, respondsToKeyCode, setIcon, setId, setLabel1, setLabel2, toString
public MultiAction(int id)
id
- The id of the Action.public void setDrawables(Drawable[] drawables)
public void setLabels(String[] labels)
public void setSecondaryLabels(String[] labels)
public int getActionCount()
public Drawable getDrawable(int index)
public String getLabel(int index)
public String getSecondaryLabel(int index)
public void nextIndex()
public void setIndex(int index)
public int getIndex()