Can someone show me an example of how to use AlphabetIndexer with a Custom Adapter that uses a getView? I have it working with a standard adapter,
If you're using a LoaderManager to manage your adapter's cursor, you'll want to make a small adjustment and override your adapters swapCursor method:
public Cursor swapCursor(Cursor c) {
// Create our indexer
if (c != null) {
mIndexer = new AlphabetIndexer(c, c.getColumnIndex(Books.TITLE),
" ABCDEFGHIJKLMNOPQRSTUVWXYZ");
}
return super.swapCursor(c);
}
Everything else remains just as @vsm describes.