public interface SectionIndexer
AbsListView
between sections of the list. A section is a group of list items
to jump to that have something in common. For example, they may begin with the
same letter or they may be songs from the same artist.Modifier and Type | Method and Description |
---|---|
int |
getPositionForSection(int section)
Provides the starting index in the list for a given section.
|
int |
getSectionForPosition(int position)
This is a reverse mapping to fetch the section index for a given position
in the list.
|
Object[] |
getSections()
This provides the list view with an array of section objects.
|
Object[] getSections()
int getPositionForSection(int section)
section
- the index of the section to jump to.int getSectionForPosition(int position)
position
- the position for which to return the section