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:
Provides the resource ID of the layout defining the guidance view. Subclasses may override
to provide their own customized layouts. The base implementation returns
lb_guidance. If overridden, the substituted
layout should contain matching IDs for any views that should be managed by the base class;
this can be achieved by starting with a copy of the base layout file.
Returns
int
The resource ID of the layout to be inflated to define the guidance view.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."],[],[]]