GuidedActionsStylist.ViewHolder

public static class GuidedActionsStylist.ViewHolder
extends RecyclerView.ViewHolder implements FacetProvider

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
     ↳ androidx.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

Public constructors

ViewHolder(View v)

Constructs an ViewHolder and caches the relevant subviews.

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()
Ob