belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
GuidedActionsStylist.ViewHolder
public
static
class
GuidedActionsStylist.ViewHolder
extends RecyclerView.ViewHolder
implements
FacetProvider
java.lang.Object | ||
↳ | android.support.v7.widget.RecyclerView.ViewHolder | |
↳ | android.support.v17.leanback.widget.GuidedActionsStylist.ViewHolder |
ViewHolder caches information about the action item layouts' subviews. Subclasses of GuidedActionsStylist
may also wish to subclass this in order to add fields.
See also:
Summary
Inherited fields |
---|
![]()
android.support.v7.widget.RecyclerView.ViewHolder
|
Public constructors | |
---|---|
GuidedActionsStylist.ViewHolder(View v)
Constructs an ViewHolder and caches the relevant subviews. |
|
GuidedActionsStylist.ViewHolder(View v, boolean isSubAction)
Constructs an ViewHolder for sub action and caches the relevant subviews. |
Public methods | |
---|---|
GuidedAction
|
getAction()
|
ImageView
|
getCheckmarkView()
Returns the checkmark view within this view holder's view. |
ImageView
|
getChevronView()
Returns the chevron view within this view holder's view. |
View
|
getContentView()
Returns the content view within this view holder's view, where title and description are shown. |
TextView
|
getDescriptionView()
Returns the description view within this view holder's view. |
EditText
|
getEditableDescriptionView()
Convenience method to return an editable version of the description, if possible, or null if the description view isn't an EditText. |
EditText
|
getEditableTitleView()
Convenience method to return an editable version of the title, if possible, or null if the title view isn't an EditText. |
View
|
getEditingView()
|
Object
|
getFacet(Class<?> facetClass)
Queries optional implemented facet. |
ImageView
|
getIconView()
Returns the icon view within this view holder's view. |
TextView
|
getTitleView()
Returns the title view within this view holder's view. |
boolean
|
isInEditing()
Returns true if in editing title, description, or activator View, false otherwise. |
boolean
|
isInEditingActivatorView()
Returns true if is in editing activator view with id guidedactions_activator_item, false otherwise. |
boolean
|
isInEditingDescription()
Returns true if the TextView is in editing description, false otherwise. |
boolean
|
isInEditingText()
Returns true if in editing title, description, so IME would be open. |
boolean
|
isInEditingTitle()
Returns true if the TextView is in editing title, false otherwise. |
boolean
|
isSubAction()
|
Inherited methods | |
---|---|
![]()
android.support.v7.widget.RecyclerView.ViewHolder
| |
![]()
java.lang.Object
| |
![]()
android.support.v17.leanback.widget.FacetProvider
|
Public constructors
GuidedActionsStylist.ViewHolder
GuidedActionsStylist.ViewHolder (View v)
Constructs an ViewHolder and caches the relevant subviews.
Parameters | |
---|---|
v |
View |
GuidedActionsStylist.ViewHolder
GuidedActionsStylist.ViewHolder (View v, boolean isSubAction)
Constructs an ViewHolder for sub action and caches the relevant subviews.
Parameters | |
---|---|
v |
View |
isSubAction |
boolean |
Public methods
getAction
GuidedAction getAction ()
Returns | |
---|---|
GuidedAction |
Currently bound action. |
getCheckmarkView
ImageView getCheckmarkView ()
Returns the checkmark view within this view holder's view.
Returns | |
---|---|
ImageView |
getChevronView
ImageView getChevronView ()
Returns the chevron view within this view holder's view.
Returns | |
---|---|
ImageView |
getContentView
View getContentView ()
Returns the content view within this view holder's view, where title and description are shown.
Returns | |
---|---|
View |
getDescriptionView
TextView getDescriptionView ()
Returns the description view within this view holder's view.
Returns | |
---|---|
TextView |
getEditableDescriptionView
EditText getEditableDescriptionView ()
Convenience method to return an editable version of the description, if possible, or null if the description view isn't an EditText.
Returns | |
---|---|
EditText |
getEditableTitleView
EditText getEditableTitleView ()
Convenience method to return an editable version of the title, if possible, or null if the title view isn't an EditText.
Returns | |
---|---|
EditText |
getEditingView
View getEditingView ()
Returns | |
---|---|
View |
Current editing title view or description view or activator view or null if not in editing. |
getFacet
Object getFacet (Class<?> facetClass)
Queries optional implemented facet.
Parameters | |
---|---|
facetClass |
Class : Facet classes to query, examples are: class of
ItemAlignmentFacet . |
Returns | |
---|---|
Object |
Facet implementation for the facetClass or null if feature not implemented. |
getIconView
ImageView getIconView ()
Returns the icon view within this view holder's view.
Returns | |
---|---|
ImageView |
getTitleView
TextView getTitleView ()
Returns the title view within this view holder's view.
Returns | |
---|---|
TextView |
isInEditing
boolean isInEditing ()
Returns true if in editing title, description, or activator View, false otherwise.
Returns | |
---|---|
boolean |
isInEditingActivatorView
boolean isInEditingActivatorView ()
Returns true if is in editing activator view with id guidedactions_activator_item, false otherwise.
Returns | |
---|---|
boolean |
isInEditingDescription
boolean isInEditingDescription ()
Returns true if the TextView is in editing description, false otherwise.
Returns | |
---|---|
boolean |
isInEditingText
boolean isInEditingText ()
Returns true if in editing title, description, so IME would be open.
Returns | |
---|---|
boolean |
True if in editing title, description, so IME would be open, false otherwise. |
isInEditingTitle
boolean isInEditingTitle ()
Returns true if the TextView is in editing title, false otherwise.
Returns | |
---|---|
boolean |
isSubAction
boolean isSubAction ()
Returns | |
---|---|
boolean |
True if bound action is inside getSubActions() , false
otherwise.
|