PlaybackControlsRow.RepeatAction
public class PlaybackControlsRow.RepeatAction extends PlaybackControlsRow.MultiAction
| java.lang.Object | |||
| ↳ | androidx.leanback.widget.Action | ||
| ↳ | androidx.leanback.widget.PlaybackControlsRow.MultiAction | ||
| ↳ | androidx.leanback.widget.PlaybackControlsRow.RepeatAction |
An action for displaying three repeat states: none, one, or all.
Summary
Constants |
|
|---|---|
static final int |
ALL = 1This field is deprecated. Use |
static final int |
INDEX_ALL = 1Action index for the repeat-all icon. |
static final int |
INDEX_NONE = 0Action index for the repeat-none icon. |
static final int |
INDEX_ONE = 2Action index for the repeat-one icon. |
static final int |
NONE = 0This field is deprecated. Use |
static final int |
ONE = 2This field is deprecated. Use |
Public constructors |
|---|
RepeatAction(Context context)Constructor |
RepeatAction(Context context, int highlightColor)Constructor |
RepeatAction(Context context, int repeatAllColor, int repeatOneColor)Constructor |
Inherited Constants |
||
|---|---|---|
|
Inherited methods |
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||
|
Constants
INDEX_ALL
public static final int INDEX_ALL = 1
Action index for the repeat-all icon.
INDEX_NONE
public static final int INDEX_NONE = 0
Action index for the repeat-none icon.
INDEX_ONE
public static final int INDEX_ONE = 2
Action index for the repeat-one icon.
Public constructors
RepeatAction
public RepeatAction(Context context)
Constructor
| Parameters | |
|---|---|
Context context |
Context used for loading resources. |
RepeatAction
public RepeatAction(Context context, int highlightColor)
Constructor
| Parameters | |
|---|---|
Context context |
Context used for loading resources |
int highlightColor |
Color to display the repeat-all and repeat0one icons. |
RepeatAction
public RepeatAction(Context context, int repeatAllColor, int repeatOneColor)
Constructor
| Parameters | |
|---|---|
Context context |
Context used for loading resources |
int repeatAllColor |
Color to display the repeat-all icon. |
int repeatOneColor |
Color to display the repeat-one icon. |