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

TwoLineItemViewHolder

public class TwoLineItemViewHolder
extends SingleLineItemViewHolder

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


A simple two line list item.

Summary

Fields

public final TextView secondary

Inherited fields

From class com.google.android.material.lists.SingleLineItemViewHolder
From class androidx.recyclerview.widget.RecyclerView.ViewHolder

Public constructors

TwoLineItemViewHolder(View view)

Public methods

static TwoLineItemViewHolder create(ViewGroup parent)

Inherited methods

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

Fields

secondary

TextView secondary

Public constructors

TwoLineItemViewHolder

TwoLineItemViewHolder (View view)

Parameters
view View

Public methods

create

TwoLineItemViewHolder create (ViewGroup parent)

Parameters
parent ViewGroup

Returns
TwoLineItemViewHolder