android.widget.SectionIndexer |
Known Indirect Subclasses |
Interface that should be implemented on Adapters to enable fast scrolling in an 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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Provides the starting index in the list for a given section.
| |||||||||||
This is a reverse mapping to fetch the section index for a given position
in the list.
| |||||||||||
This provides the list view with an array of section objects.
|
Provides the starting index in the list for a given section.
section | the index of the section to jump to. |
---|
This is a reverse mapping to fetch the section index for a given position in the list.
position | the position for which to return the section |
---|
This provides the list view with an array of section objects. In the simplest case these are Strings, each containing one letter of the alphabet. They could be more complex objects that indicate the grouping for the adapter's consumption. The list view will call toString() on the objects to get the preview letter to display while scrolling.