public static abstract class PlaybackControlsRow.MultiAction
extends Action
| java.lang.Object | ||
| android.support.v17.leanback.widget.Action | ||
| android.support.v17.leanback.widget.PlaybackControlsRow.MultiAction | ||
| |
| |
由一系列图标组成的动作的基类。
Inherited constants |
|---|
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) |
|
|---|---|
android.support.v17.leanback.widget.Action
|
|
java.lang.Object
|
|
PlaybackControlsRow.MultiAction (int id)
构造函数
| 参数(Parameters) | |
|---|---|
id |
int: The id of the Action. |
int getActionCount ()
返回操作的数量。
| 返回(Returns) | |
|---|---|
int |
|
Drawable getDrawable (int index)
返回给定索引处的drawable。
| 参数(Parameters) | |
|---|---|
index |
int
|
| 返回(Returns) | |
|---|---|
Drawable |
|
int getIndex ()
返回当前的索引。
| 返回(Returns) | |
|---|---|
int |
|
String getSecondaryLabel (int index)
返回给定索引处的辅助标签。
| 参数(Parameters) | |
|---|---|
index |
int
|
| 返回(Returns) | |
|---|---|
String |
|
void nextIndex ()
增加索引,一旦达到结束就回零。
void setDrawables (Drawable[] drawables)
设置可绘制数组。 数组的大小定义了此操作的有效索引范围。
| 参数(Parameters) | |
|---|---|
drawables |
Drawable
|
void setIndex (int index)
设置当前索引。
| 参数(Parameters) | |
|---|---|
index |
int
|
void setLabels (String[] labels)
设置用作标签的字符串数组。 数组的大小定义了此操作的有效索引范围。 标签用于定义可访问性内容描述,除非提供了辅助标签。
| 参数(Parameters) | |
|---|---|
labels |
String
|
void setSecondaryLabels (String[] labels)
设置用作辅助标签的字符串数组。 这些标签仅用于替代可访问性内容描述的主要标签。
| 参数(Parameters) | |
|---|---|
labels |
String
|