PlaybackControlsRow.ThumbsAction
public abstract class PlaybackControlsRow.ThumbsAction extends PlaybackControlsRow.MultiAction
| java.lang.Object | |||
| ↳ | androidx.leanback.widget.Action | ||
| ↳ | androidx.leanback.widget.PlaybackControlsRow.MultiAction | ||
| ↳ | androidx.leanback.widget.PlaybackControlsRow.ThumbsAction |
PlaybackControlsRow.ThumbsDownAction |
An action displaying an icon for thumbs down. |
PlaybackControlsRow.ThumbsUpAction |
An action displaying an icon for thumbs up. |
A base class for displaying a thumbs action.
Summary
Constants |
|
|---|---|
static final int |
INDEX_OUTLINE = 1Action index for the outline thumb icon. |
static final int |
INDEX_SOLID = 0Action index for the solid thumb icon. |
static final int |
OUTLINE = 1This field is deprecated. Use |
static final int |
SOLID = 0This field is deprecated. Use |
Public constructors |
|---|
ThumbsAction(Constructor |
Inherited Constants |
||
|---|---|---|
|
Inherited methods |
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||
|
Constants
INDEX_OUTLINE
public static final int INDEX_OUTLINE = 1
Action index for the outline thumb icon.
INDEX_SOLID
public static final int INDEX_SOLID = 0
Action index for the solid thumb icon.
Public constructors
ThumbsAction
public ThumbsAction(
int id,
Context context,
int solidIconIndex,
int outlineIconIndex
)
Constructor
| Parameters | |
|---|---|
int id |
The id of the Action. |
Context context |
Context used for loading resources. |
int solidIconIndex |
Which lbPlaybackControlsActionIcons will be used as the solid thumb icon |
int outlineIconIndex |
Which lbPlaybackControlsActionIcons will be used as the outline thumb icon |