public class ViewHolder extends Object
BaseAdapter implementation that may be used
to support the optimized holder pattern for BaseAdapter.getView(int, View, ViewGroup)
method.| Modifier and Type | Field and Description |
|---|---|
View |
itemView
View with which has been this holder created.
|
| Constructor and Description |
|---|
ViewHolder(View itemView)
Creates a new instance of ViewHolder for the given itemView.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdapterPosition()
Returns the current position of this holder instance.
|
public final View itemView
public final int getAdapterPosition()
DataSet.NO_POSITION if no position has been specified yet.