public class SectionIndexingExpandableStickyListHeadersAdapter
extends android.widget.BaseAdapter
implements android.widget.SectionIndexer
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllItemsEnabled() |
void |
collapse(long headerId) |
void |
expand(long headerId) |
long |
findItemIdByView(android.view.View view) |
android.view.View |
findViewByItemId(long itemId) |
java.util.List<java.lang.Long> |
getCollapseHeaderIds() |
int |
getCount() |
long |
getHeaderId(int position)
Get the header id associated with the specified position in the list.
|
android.view.View |
getHeaderView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
Get a View that displays the header data at the specified position in the
set.
|
java.lang.Object |
getItem(int i) |
long |
getItemId(int i) |
java.util.List<android.view.View> |
getItemViewsByHeaderId(long headerId) |
int |
getItemViewType(int i) |
int |
getPositionForSection(int sectionIndex) |
int |
getSectionForPosition(int position) |
java.lang.Object[] |
getSections() |
android.view.View |
getView(int i,
android.view.View view,
android.view.ViewGroup viewGroup) |
int |
getViewTypeCount() |
boolean |
hasStableIds() |
boolean |
isEmpty() |
boolean |
isEnabled(int i) |
boolean |
isHeaderCollapsed(long headerId) |
void |
registerDataSetObserver(android.database.DataSetObserver dataSetObserver) |
void |
setCollapseHeaderIds(java.util.List<java.lang.Long> collapseHeaderIds) |
void |
unregisterDataSetObserver(android.database.DataSetObserver dataSetObserver) |
getAutofillOptions, getDropDownView, notifyDataSetChanged, notifyDataSetInvalidated, setAutofillOptionspublic java.lang.Object[] getSections()
getSections in interface android.widget.SectionIndexerpublic int getPositionForSection(int sectionIndex)
getPositionForSection in interface android.widget.SectionIndexerpublic int getSectionForPosition(int position)
getSectionForPosition in interface android.widget.SectionIndexerpublic java.util.List<java.lang.Long> getCollapseHeaderIds()
public void setCollapseHeaderIds(java.util.List<java.lang.Long> collapseHeaderIds)
public android.view.View getHeaderView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
StickyListHeadersAdaptergetHeaderView in interface StickyListHeadersAdapterposition - The position of the item within the adapter's data set of the item whose
header view we want.convertView - The old view to reuse, if possible. Note: You should check that this view is
non-null and of an appropriate type before using. If it is not possible to
convert this view to display the correct data, this method can create a new
view.parent - The parent that this view will eventually be attached to.public long getHeaderId(int position)
StickyListHeadersAdaptergetHeaderId in interface StickyListHeadersAdapterposition - The position of the item within the adapter's data set whose header id we
want.public boolean areAllItemsEnabled()
areAllItemsEnabled in interface android.widget.ListAdapterareAllItemsEnabled in class android.widget.BaseAdapterpublic boolean isEnabled(int i)
isEnabled in interface android.widget.ListAdapterisEnabled in class android.widget.BaseAdapterpublic void registerDataSetObserver(android.database.DataSetObserver dataSetObserver)
registerDataSetObserver in interface android.widget.AdapterregisterDataSetObserver in class android.widget.BaseAdapterpublic void unregisterDataSetObserver(android.database.DataSetObserver dataSetObserver)
unregisterDataSetObserver in interface android.widget.AdapterunregisterDataSetObserver in class android.widget.BaseAdapterpublic int getCount()
getCount in interface android.widget.Adapterpublic java.lang.Object getItem(int i)
getItem in interface android.widget.Adapterpublic long getItemId(int i)
getItemId in interface android.widget.Adapterpublic boolean hasStableIds()
hasStableIds in interface android.widget.AdapterhasStableIds in class android.widget.BaseAdapterpublic android.view.View getView(int i,
android.view.View view,
android.view.ViewGroup viewGroup)
getView in interface android.widget.Adapterpublic int getItemViewType(int i)
getItemViewType in interface android.widget.AdaptergetItemViewType in class android.widget.BaseAdapterpublic int getViewTypeCount()
getViewTypeCount in interface android.widget.AdaptergetViewTypeCount in class android.widget.BaseAdapterpublic boolean isEmpty()
isEmpty in interface android.widget.AdapterisEmpty in class android.widget.BaseAdapterpublic java.util.List<android.view.View> getItemViewsByHeaderId(long headerId)
public boolean isHeaderCollapsed(long headerId)
public void expand(long headerId)
public void collapse(long headerId)
public android.view.View findViewByItemId(long itemId)
public long findItemIdByView(android.view.View view)