public class

ContactsSectionIndexer

extends Object
implements SectionIndexer
java.lang.Object
   ↳ com.android.contacts.ContactsSectionIndexer

Class Overview

A section indexer that is configured with precomputed section titles and their respective counts.

Summary

Public Constructors
ContactsSectionIndexer(String[] sections, int[] counts)
Constructor.
Public Methods
int getPositionForSection(int section)
int getSectionForPosition(int position)
Object[] getSections()
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.widget.SectionIndexer

Public Constructors

public ContactsSectionIndexer (String[] sections, int[] counts)

Constructor.

Parameters
sections a non-null array
counts a non-null array of the same size as sections

Public Methods

public int getPositionForSection (int section)

public int getSectionForPosition (int position)

public Object[] getSections ()