public class

PlaybackControlsRow.RepeatAction

extends PlaybackControlsRow.MultiAction

 java.lang.Object

androidx.leanback.widget.Action

androidx.leanback.widget.PlaybackControlsRow.MultiAction

↳androidx.leanback.widget.PlaybackControlsRow.RepeatAction

Overview

An action for displaying three repeat states: none, one, or all.

Summary

Fields
public static final intALL

Action index for the repeat-all icon.

public static final intINDEX_ALL

Action index for the repeat-all icon.

public static final intINDEX_NONE

Action index for the repeat-none icon.

public static final intINDEX_ONE

Action index for the repeat-one icon.

public static final intNONE

Action index for the repeat-none icon.

public static final intONE

Action index for the repeat-one icon.

from ActionNO_ID
Constructors
publicRepeatAction(Context context)

Constructor

publicRepeatAction(Context context, int highlightColor)

Constructor

publicRepeatAction(Context context, int repeatAllColor, int repeatOneColor)

Constructor

Methods
from PlaybackControlsRow.MultiActiongetActionCount, getDrawable, getIndex, getLabel, getSecondaryLabel, nextIndex, setDrawables, setIndex, setLabels, setSecondaryLabels
from ActionaddKeyCode, getIcon, getId, getLabel1, getLabel2, removeKeyCode, respondsToKeyCode, setIcon, setId, setLabel1, setLabel2, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public static final int NONE

Deprecated: Use PlaybackControlsRow.RepeatAction.INDEX_NONE

Action index for the repeat-none icon.

public static final int ALL

Deprecated: Use PlaybackControlsRow.RepeatAction.INDEX_ALL

Action index for the repeat-all icon.

public static final int ONE

Deprecated: Use PlaybackControlsRow.RepeatAction.INDEX_ONE

Action index for the repeat-one icon.

public static final int INDEX_NONE

Action index for the repeat-none icon.

public static final int INDEX_ALL

Action index for the repeat-all icon.

public static final int INDEX_ONE

Action index for the repeat-one icon.

Constructors

public RepeatAction(Context context)

Constructor

Parameters:

context: Context used for loading resources.

public RepeatAction(Context context, int highlightColor)

Constructor

Parameters:

context: Context used for loading resources
highlightColor: Color to display the repeat-all and repeat0one icons.

public RepeatAction(Context context, int repeatAllColor, int repeatOneColor)

Constructor

Parameters:

context: Context used for loading resources
repeatAllColor: Color to display the repeat-all icon.
repeatOneColor: Color to display the repeat-one icon.