Google is committed to advancing racial equity for Black communities. See how.

SingleLineItemViewHolder

public class SingleLineItemViewHolder
extends RecyclerView.ViewHolder

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
     ↳ com.google.android.material.lists.SingleLineItemViewHolder
Known Direct Subclasses
Known Indirect Subclasses


A simple single line list item.

Summary

Fields

public final ImageView icon

public final TextView text

Inherited fields

From class androidx.recyclerview.widget.RecyclerView.ViewHolder

Public constructors

SingleLineItemViewHolder(View view)

Public methods

static SingleLineItemViewHolder create(ViewGroup parent)

Inherited methods

From class androidx.recyclerview.widget.RecyclerView.ViewHolder
From class java.lang.Object

Fields

icon

ImageView icon

text

TextView text

Public constructors

SingleLineItemViewHolder

SingleLineItemViewHolder (View view)

Parameters
view View

Public methods

create

SingleLineItemViewHolder create (ViewGroup parent)

Parameters
parent ViewGroup

Returns
SingleLineItemViewHolder