ViewHolder
open class ViewHolder : RecyclerView.ViewHolder, FacetProvider
kotlin.Any | ||
↳ | androidx.recyclerview.widget.RecyclerView.ViewHolder | |
↳ | androidx.leanback.widget.GuidedActionsStylist.ViewHolder |
ViewHolder caches information about the action item layouts' subviews. Subclasses of may also wish to subclass this in order to add fields.
Summary
Public constructors | |
---|---|
Constructs an ViewHolder and caches the relevant subviews. |
|
Constructs an ViewHolder for sub action and caches the relevant subviews. |
Public methods | |
---|---|
open GuidedAction! | |
open ImageView! |
Returns the checkmark view within this view holder's view. |
open ImageView! |
Returns the chevron view within this view holder's view. |
open View! |
Returns the content view within this view holder's view, where title and description are shown. |
open TextView! |
Returns the description view within this view holder's view. |
open EditText! |
Convenience method to return an editable version of the description, if possible, or null if the description view isn't an EditText. |
open EditText! |
Convenience method to return an editable version of the title, if possible, or null if the title view isn't an EditText. |
open View! | |
open Any! | |
open ImageView! |
Returns the icon view within this view holder's view. |
open TextView! |
Returns the title view within this view holder's view. |
open Boolean |
Returns true if in editing title, description, or activator View, false otherwise. |
open Boolean |
Returns true if is in editing activator view with id guidedactions_activator_item, false otherwise. |
open Boolean |
Returns true if the TextView is in editing description, false otherwise. |
open Boolean |
Returns true if in editing title, description, so IME would be open. |
open Boolean |
Returns true if the TextView is in editing title, false otherwise. |
open Boolean |
Inherited functions | |
---|---|