public interface StickyListHeadersAdapter
extends android.widget.ListAdapter
| Modifier and Type | Method and Description |
|---|---|
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.
|
android.view.View getHeaderView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
position - 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.long getHeaderId(int position)
position - The position of the item within the adapter's data set whose header id we
want.