Stay organized with collections
Save and categorize content based on your preferences.
SingleLineItemViewHolder
public
class
SingleLineItemViewHolder
extends RecyclerView.ViewHolder
java.lang.Object
|
↳ |
androidx.recyclerview.widget.RecyclerView.ViewHolder
|
|
↳ |
com.google.android.material.lists.SingleLineItemViewHolder
|
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
final
View |
itemView
|
|
Inherited methods |
From class
androidx.recyclerview.widget.RecyclerView.ViewHolder
final
int
|
getAdapterPosition()
|
final
long
|
getItemId()
|
final
int
|
getItemViewType()
|
final
int
|
getLayoutPosition()
|
final
int
|
getOldPosition()
|
final
int
|
getPosition()
|
final
boolean
|
isRecyclable()
|
final
void
|
setIsRecyclable(boolean arg0)
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Fields
icon
public final ImageView icon
text
public final TextView text
Public constructors
SingleLineItemViewHolder
public SingleLineItemViewHolder (View view)
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-02-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-08 UTC."],[],[]]