java.lang.Object | |
↳ | android.support.v17.leanback.widget.Action |
Known Direct Subclasses |
An action that can be shown on a details page. It contains one or two lines of text and an optional image.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for an Action.
| |||||||||||
Constructor for an Action.
| |||||||||||
Constructor for an Action.
| |||||||||||
Constructor for an Action.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the icon drawable for this Action.
| |||||||||||
Returns the id for this Action.
| |||||||||||
Returns the first line label for this Action.
| |||||||||||
Returns the second line label for this Action.
| |||||||||||
Set the icon drawable for this Action.
| |||||||||||
Set id for this Action.
| |||||||||||
Set the first line label for this Action.
| |||||||||||
Set the second line label for this Action.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor for an Action.
id | The id of the Action. |
---|
Constructor for an Action.
id | The id of the Action. |
---|---|
label | The label to display for the Action. |
Constructor for an Action.
id | The id of the Action. |
---|---|
label1 | The label to display on the first line of the Action. |
label2 | The label to display on the second line of the Action. |
Constructor for an Action.
id | The id of the Action. |
---|---|
label1 | The label to display on the first line of the Action. |
label2 | The label to display on the second line of the Action. |
icon | The icon to display for the Action. |
Returns the id for this Action.
Set id for this Action.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.