belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
GuidanceStylist
public
class
GuidanceStylist
extends Object
implements
FragmentAnimationProvider
java.lang.Object | |
↳ | android.support.v17.leanback.widget.GuidanceStylist |
GuidanceStylist is used within a GuidedStepFragment
to display contextual information for the decision(s) required at that step.
Many aspects of the base GuidanceStylist can be customized through theming; see the theme attributes below. Note that these attributes are not set on individual elements in layout XML, but instead would be set in a custom theme. See Styles and Themes for more information.
If these hooks are insufficient, this class may also be subclassed. Subclasses
may wish to override the onProvideLayoutId()
method to change the layout file used to
display the guidance; more complex layouts may be supported by also providing a subclass of
GuidanceStylist.Guidance
with extra fields.
Note: If an alternate layout is provided, the following view IDs should be used to refer to base elements:
View IDs are allowed to be missing, in which case the corresponding views will be null.
Summary
Nested classes | |
---|---|
class |
GuidanceStylist.Guidance
A data class representing contextual information for a |
XML attributes | |
---|---|
LeanbackGuidedStepTheme_guidanceBreadcrumbStyle |
|
LeanbackGuidedStepTheme_guidanceContainerStyle |
|
LeanbackGuidedStepTheme_guidanceDescriptionStyle |
|
LeanbackGuidedStepTheme_guidanceIconStyle |
|
LeanbackGuidedStepTheme_guidanceTitleStyle |
|
LeanbackGuidedStepTheme_guidedStepImeAppearingAnimation |
|
LeanbackGuidedStepTheme_guidedStepImeDisappearingAnimation |
Public constructors | |
---|---|
GuidanceStylist()
|
Public methods | |
---|---|
TextView
|
getBreadcrumbView()
Returns the view displaying the breadcrumb of the guidance. |
TextView
|
getDescriptionView()
Returns the view displaying the description of the guidance. |
ImageView
|
getIconView()
Returns the view displaying the icon of the guidance. |
TextView
|
getTitleView()
Returns the view displaying the title of the guidance. |
View
|
onCreateView(LayoutInflater inflater, ViewGroup container, GuidanceStylist.Guidance guidance)
Creates an appropriately configured view for the given Guidance, using the provided inflater and container. |
void
|
onDestroyView()
Called when destroy the View created by GuidanceStylist. |
void
|
onImeAppearing(List<Animator> animators)
Animates the fragment in response to the IME appearing. |
void
|
|