public class SimpleSectionedRecyclerViewAdapter
extends <any>
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleSectionedRecyclerViewAdapter.Section |
static class |
SimpleSectionedRecyclerViewAdapter.SectionViewHolder |
| Constructor and Description |
|---|
SimpleSectionedRecyclerViewAdapter(android.content.Context context,
int sectionResourceId,
int textResourceId,
RecyclerView.Adapter baseAdapter) |
| Modifier and Type | Method and Description |
|---|---|
int |
getItemCount() |
long |
getItemId(int position) |
int |
getItemViewType(int position) |
boolean |
isSectionHeaderPosition(int position) |
void |
onBindViewHolder(RecyclerView.ViewHolder sectionViewHolder,
int position) |
RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int typeView) |
int |
positionToSectionedPosition(int position) |
int |
sectionedPositionToPosition(int sectionedPosition) |
void |
setSections(SimpleSectionedRecyclerViewAdapter.Section[] sections) |
public SimpleSectionedRecyclerViewAdapter(android.content.Context context,
int sectionResourceId,
int textResourceId,
RecyclerView.Adapter baseAdapter)
public RecyclerView.ViewHolder onCreateViewHolder(android.view.ViewGroup parent,
int typeView)
public void onBindViewHolder(RecyclerView.ViewHolder sectionViewHolder,
int position)
public int getItemViewType(int position)
public void setSections(SimpleSectionedRecyclerViewAdapter.Section[] sections)
public int positionToSectionedPosition(int position)
public int sectionedPositionToPosition(int sectionedPosition)
public boolean isSectionHeaderPosition(int position)
public long getItemId(int position)
public int getItemCount()