Hola esto es cómo uso AlphaIndexer
private final class ContactListItemAdapter extends ResourceCursorAdapter
implements SectionIndexer {
AlphabetIndexer alphaIndexer;
public ContactListItemAdapter(Context context, int layout, Cursor c) {
super(context, layout, c);
alphaIndexer = new AlphabetIndexer(c, NAME_COLUMN_INDEX,
" ABCDEFGHIJKLMNOPQRSTUVWXYZ");
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
....
a normal getView
....
}
public int getPositionForSection(int section) {
return alphaIndexer.getPositionForSection(section);
}
public int getSectionForPosition(int position) {
return alphaIndexer.getSectionForPosition(position);
}
public Object[] getSections() {
return alphaIndexer.getSections();
}
}
NAME_COLUMN_INDEX es el índice de la columna en el esquema de base de datos.
...
Si esto no es lo que necesita, por favor, añadir algo de código de cuáles han de ser la clase de extender y así sucesivamente.
De todos modos espero que esto ayude.
Estoy haciendo algo similar AQUÍ http://stackoverflow.com/questions/10224233/alphabetindexer-with-custom-adapter-managed-by-loadermanager – toobsco42
Aquí he creado una aplicación de muestra en Android, que es similar a Iphone Alphabatical Indexador http://mukeshyadav4u.blogspot.in/2012/06/alphabatical-indexer-in-android.html –