public static abstract class PlaybackControlsRow.MultiAction
extends Action

   ↳ androidx.leanback.widget.Action
     ↳ androidx.leanback.widget.PlaybackControlsRow.MultiAction

Base class for an action comprised of a series of icons.


Inherited constants

Public constructors

MultiAction(int id)


Public methods

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.

Inherited methods