public class ChildViewHolder<C>
extends RecyclerView.ViewHolder
The user should extend this class and implement as they wish for their child list item.
| Constructor and Description |
|---|
ChildViewHolder(android.view.View itemView)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
C |
getChild() |
int |
getChildAdapterPosition()
Returns the adapter position of the Child associated with this ChildViewHolder
|
int |
getParentAdapterPosition()
Returns the adapter position of the Parent associated with this ChildViewHolder
|
public ChildViewHolder(@NonNull
android.view.View itemView)
itemView - The View being hosted in this ViewHolder@UiThread public C getChild()
@UiThread public int getParentAdapterPosition()
@UiThread public int getChildAdapterPosition()