Code example for AlphabetIndexer

Methods: getPositionForSection

0
                final int wordColIndex = c.getColumnIndexOrThrow(UserDictionary.Words.WORD);
                mIndexer = new AlphabetIndexer(c, wordColIndex, alphabet);
            } 
            setViewBinder(mViewBinder);
        } 
 
        public int getPositionForSection(int section) {
            return null == mIndexer ? 0 : mIndexer.getPositionForSection(section);
        } 
 
        public int getSectionForPosition(int position) {
            return null == mIndexer ? 0 : mIndexer.getSectionForPosition(position);
        } 
 
        public Object[] getSections() {
            return null == mIndexer ? null : mIndexer.getSections();
        } 
    } 
}