Most visited

Recently visited

PlaybackControlsRow.MultiAction

public static abstract class PlaybackControlsRow.MultiAction
extends Action

java.lang.Object
    android.support.v17.leanback.widget.Action
      android.support.v17.leanback.widget.PlaybackControlsRow.MultiAction
Known Direct Subclasses
Known Indirect Subclasses


由一系列图标组成的动作的基类。

摘要(Summary)

Inherited constants

From class android.support.v17.leanback.widget.Action

Public constructors

PlaybackControlsRow.MultiAction(int id)

构造函数

公共方法(Public methods)

int getActionCount()

返回操作的数量。

Drawable getDrawable(int index)

返回给定索引处的drawable。

int getIndex()

返回当前的索引。

String getLabel(int index)

返回给定索引处的标签。

String getSecondaryLabel(int index)

返回给定索引处的辅助标签。

void nextIndex()

增加索引,一旦达到结束就回零。

void setDrawables(Drawable[] drawables)

设置可绘制数组。

void setIndex(int index)

设置当前索引。

void setLabels(String[] labels)

设置用作标签的字符串数组。

void setSecondaryLabels(String[] labels)

设置用作辅助标签的字符串数组。

继承方法(Inherited methods)

From class android.support.v17.leanback.widget.Action
From class java.lang.Object

Public constructors

PlaybackControlsRow.MultiAction

PlaybackControlsRow.MultiAction (int id)

构造函数

参数(Parameters)
id int: The id of the Action.

公共方法(Public methods)

getActionCount

int getActionCount ()

返回操作的数量。

返回(Returns)
int

getDrawable

Drawable getDrawable (int index)

返回给定索引处的drawable。

参数(Parameters)
index int
返回(Returns)
Drawable

getIndex

int getIndex ()

返回当前的索引。

返回(Returns)
int

getLabel

String getLabel (int index)

返回给定索引处的标签。

参数(Parameters)
index int
返回(Returns)
String

getSecondaryLabel

String getSecondaryLabel (int index)

返回给定索引处的辅助标签。

参数(Parameters)
index int
返回(Returns)
String

nextIndex

void nextIndex ()

增加索引,一旦达到结束就回零。

setDrawables

void setDrawables (Drawable[] drawables)

设置可绘制数组。 数组的大小定义了此操作的有效索引范围。

参数(Parameters)
drawables Drawable

setIndex

void setIndex (int index)

设置当前索引。

参数(Parameters)
index int

setLabels

void setLabels (String[] labels)

设置用作标签的字符串数组。 数组的大小定义了此操作的有效索引范围。 标签用于定义可访问性内容描述,除非提供了辅助标签。

参数(Parameters)
labels String

setSecondaryLabels

void setSecondaryLabels (String[] labels)

设置用作辅助标签的字符串数组。 这些标签仅用于替代可访问性内容描述的主要标签。

参数(Parameters)
labels String

Hooray!