public static class GuidanceStylist.Guidance
extends Object
| java.lang.Object | |
| android.support.v17.leanback.widget.GuidanceStylist.Guidance | |
表示GuidedStepFragment上下文信息的数据类。 指南由简短的标题,更长的描述,面包屑帮助全球导航(通常指示后退按钮的前导位置)和可选图标组成。 所有这些信息旨在为用户提供适当的上下文以作出当前步骤所需的决策。
如果客户希望记住用于定制GuidanceStylist的辅助数据,则可以提供此类的子类。
Public constructors |
|
|---|---|
GuidanceStylist.Guidance(String title, String description, String breadcrumb, Drawable icon) 使用指定的标题,描述,面包屑和图标绘制构造指导对象。 |
|
公共方法(Public methods) |
|
|---|---|
String |
getBreadcrumb() 返回构建此指导时指定的面包屑。 |
String |
getDescription() 返回构建此指导时指定的描述。 |
Drawable |
getIconDrawable() 返回构建本指南时指定的可绘制图标。 |
String |
getTitle() 返回构建此指导时指定的标题。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
GuidanceStylist.Guidance (String title, String description, String breadcrumb, Drawable icon)
使用指定的标题,描述,面包屑和图标绘制构造指导对象。
| 参数(Parameters) | |
|---|---|
title |
String: The title for the current guided step. |
description |
String: The description for the current guided step. |
breadcrumb |
String: The breadcrumb for the current guided step. |
icon |
Drawable: The icon drawable representing the current guided step. |
String getBreadcrumb ()
返回构建此指导时指定的面包屑。
| 返回(Returns) | |
|---|---|
String |
The breadcrumb for this Guidance. |
String getDescription ()
返回构建此指导时指定的描述。
| 返回(Returns) | |
|---|---|
String |
The description for this Guidance. |
Drawable getIconDrawable ()
返回构建本指南时指定的可绘制图标。
| 返回(Returns) | |
|---|---|
Drawable |
The icon for this Guidance. |