PlaybackControlsRow.RepeatAction

public static 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

int ALL

This constant is deprecated. Use INDEX_ALL

int INDEX_ALL

Action index for the repeat-all icon.

int INDEX_NONE

Action index for the repeat-none icon.

int INDEX_ONE

Action index for the repeat-one icon.

int NONE

This constant is deprecated. Use INDEX_NONE

int ONE

This constant is deprecated. Use INDEX_ONE

Inherited constants

Public constructors

PlaybackControlsRow.RepeatAction(Context context)

Constructor

PlaybackControlsRow.RepeatAction(Context context, int highlightColor)

Constructor

PlaybackControlsRow.RepeatAction(Context context, int repeatAllColor, int repeatOneColor)

Constructor

Inherited methods

Constants

ALL

public static final int ALL

This constant is deprecated.
Use INDEX_ALL

Action index for the repeat-all icon.

Constant Value: 1 (0x00000001)

INDEX_ALL

public static final int INDEX_ALL

Action index for the repeat-all icon.

Constant Value: 1 (0x00000001)

INDEX_NONE

public static final int INDEX_NONE

Action index for the repeat-none icon.

Constant Value: 0 (0x00000000)

INDEX_ONE

public static final int INDEX_ONE

Action index for the repeat-one icon.

Constant Value: 2 (0x00000002)

NONE

public static final int NONE

This constant is deprecated.
Use INDEX_NONE

Action index for the repeat-none icon.

Constant Value: 0 (0x00000000)

ONE

public static final int ONE

This constant is deprecated.
Use INDEX_ONE

Action index for the repeat-one icon.

Constant Value: 2 (0x00000002)

Public constructors

PlaybackControlsRow.RepeatAction

public PlaybackControlsRow.RepeatAction (Context context)

Constructor

Parameters
context Context: Context used for loading resources.

PlaybackControlsRow.RepeatAction

public PlaybackControlsRow.RepeatAction (Context context, 
                int highlightColor)

Constructor

Parameters
context Context: Context used for loading resources

highlightColor int: Color to display the repeat-all and repeat0one icons.

PlaybackControlsRow.RepeatAction

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

Constructor

Parameters
context Context: Context used for loading resources

repeatAllColor int: Color to display the repeat-all icon.

repeatOneColor int: Color to display the repeat-one icon.