Google 致力于为黑人社区推动种族平等。查看具体举措

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