public interface StickyRecyclerHeadersAdapter<VH extends android.support.v7.widget.RecyclerView.ViewHolder>
| Modifier and Type | Method and Description |
|---|---|
long |
getHeaderId(int position)
Get the ID of the header associated with this item.
|
int |
getItemCount() |
void |
onBindHeaderViewHolder(VH holder,
int position)
Binds an existing ViewHolder to the specified adapter position.
|
VH |
onCreateHeaderViewHolder(android.view.ViewGroup parent)
Creates a new ViewHolder for a header.
|
long getHeaderId(int position)
position - the position of the view to get the header ID ofVH onCreateHeaderViewHolder(android.view.ViewGroup parent)
parent - the view to create a header view holder forvoid onBindHeaderViewHolder(VH holder, int position)
holder - the view holderposition - the adapter positionint getItemCount()