java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Action | |
↳ | android.support.v17.leanback.widget.GuidedAction |
A data class which represents an action within a GuidedStepFragment
. GuidedActions contain at minimum a title
and a description, and typically also an icon.
A GuidedAction typically represents a single action a user may take, but may also represent a possible choice out of a group of mutually exclusive choices (similar to radio buttons), or an information-only label (in which case the item cannot be clicked).
GuidedActions may optionally be checked. They may also indicate that they will request further user input on selection, in which case they will be displayed with a chevron indicator.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GuidedAction.Builder |
Builds a GuidedAction object.
|
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_CHECK_SET_ID | ||||||||||
int | NO_CHECK_SET | ||||||||||
int | NO_DRAWABLE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the check set id this action is a part of.
| |||||||||||
Returns the description of this action.
| |||||||||||
Returns the intent associated with this action.
| |||||||||||
Returns the title of this action.
| |||||||||||
Returns whether this action is has a multiline description.
| |||||||||||
Returns whether this action will request further user input when selected, such as showing
another GuidedStepFragment or launching a new activity.
| |||||||||||
Returns whether the action will only display information and is thus not clickable.
| |||||||||||
Returns whether this action is checked.
| |||||||||||
Returns whether this action is enabled.
| |||||||||||
Sets whether this action is checked.
| |||||||||||
Sets whether this action is enabled.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Action
| |||||||||||
From class
java.lang.Object
|
Returns the check set id this action is a part of. All actions in the same list with the same check set id are considered linked. When one of the actions within that set is selected, that action becomes checked, while all the other actions become unchecked.
NO_CHECK_SET
if this action isn't a part of a check set.
Returns the description of this action.
Returns the intent associated with this action.
Returns the title of this action.
Returns whether this action is has a multiline description.
Returns whether this action will request further user input when selected, such as showing another GuidedStepFragment or launching a new activity. Configured during construction.
Returns whether the action will only display information and is thus not clickable. If both
this and hasNext()
are true, infoOnly takes precedence. The default is false. For
example, this might represent e.g. the amount of storage a document uses, or the cost of an
app.
Returns whether this action is checked.
Returns whether this action is enabled.
Sets whether this action is checked.
checked | Whether this action should be checked. |
---|
Sets whether this action is enabled.
enabled | Whether this action should be enabled. |
---|