public abstract class SectionAdapter<T extends Sectionable> extends BaseSectionAdapter implements android.widget.Filterable
PINNED_HEADER_GONE, PINNED_HEADER_PUSHED_UP, PINNED_HEADER_VISIBLE, TAG
Constructor and Description |
---|
SectionAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
getCount() |
android.widget.Filter |
getFilter() |
T |
getItem(int position) |
long |
getItemId(int position) |
int |
getPositionForSection(int section) |
int |
getSectionForPosition(int position) |
String[] |
getSections() |
String[] |
getSectionsWithFullName() |
boolean |
isPositionBottomOfSection(int position) |
boolean |
isPositionTopOfSection(int position) |
void |
replaceDataInSection(String section,
List<T> dataForSection) |
void |
setData(List<T> unSectionedList) |
void |
setDataManually(List<android.util.Pair<String,List<T>>> data) |
bindSectionHeader, configurePinnedHeader, getAmazingView, getPinnedHeaderState, getView, onScroll, onScrollStateChanged
public void clear()
public int getCount()
getCount
in interface android.widget.Adapter
public T getItem(int position)
getItem
in interface android.widget.Adapter
public long getItemId(int position)
getItemId
in interface android.widget.Adapter
public int getPositionForSection(int section)
getPositionForSection
in interface android.widget.SectionIndexer
getPositionForSection
in class BaseSectionAdapter
public int getSectionForPosition(int position)
getSectionForPosition
in interface android.widget.SectionIndexer
getSectionForPosition
in class BaseSectionAdapter
public String[] getSections()
getSections
in interface android.widget.SectionIndexer
getSections
in class BaseSectionAdapter
public String[] getSectionsWithFullName()
public boolean isPositionTopOfSection(int position)
public boolean isPositionBottomOfSection(int position)
public android.widget.Filter getFilter()
getFilter
in interface android.widget.Filterable
Copyright © 2011–2014. All rights reserved.