SingleLineItemViewHolder

public class SingleLineItemViewHolder
extends RecyclerView.ViewHolder

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


A simple single line list item.

Summary

Fields

public final ImageView icon

public final TextView text

Inherited fields

Public constructors

SingleLineItemViewHolder(View view)

Public methods

static SingleLineItemViewHolder create(ViewGroup parent)

Inherited methods

Fields

icon

public final ImageView icon

text

public final TextView text

Public constructors

SingleLineItemViewHolder

public SingleLineItemViewHolder (View view)

Parameters
view View

Public methods

create

public static SingleLineItemViewHolder create (ViewGroup parent)

Parameters
parent ViewGroup

Returns
SingleLineItemViewHolder