public abstract static class SettingHeadersAdapter.ViewHolder extends Object
SettingHeadersAdapter.| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC_TYPE
Constant that identifies basic type of item view associated with a specified holder.
|
android.view.View |
itemView
Item view associated with this holder instance.
|
| Constructor and Description |
|---|
ViewHolder(android.view.View itemView)
Creates a new instance of ViewHolder for the given itemView.
|
ViewHolder(android.view.View itemView,
int itemViewType)
Creates a new instance of ViewHolder for the given itemView that is of the
specified itemViewType.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdapterPosition()
Returns the adapter position of the item represented by this holder instance.
|
int |
getItemViewType()
Returns the type of the item view associated with this holder instance.
|
public static final int BASIC_TYPE
@NonNull public final android.view.View itemView
public ViewHolder(@NonNull
android.view.View itemView)
itemView - Instance of the view to be associated with new holder.public ViewHolder(@NonNull
android.view.View itemView,
int itemViewType)
itemView - Instance of the view to be associated with new holder.public final int getItemViewType()
If this holder has been created without item view type explicitly specified then this method
should return BASIC_TYPE.
public final int getAdapterPosition()
SettingHeadersAdapter.NO_POSITION
if this holder is not bound yet or the position is unavailable at the time.