Code example for SectionIndexer

Methods: getPositionForSection

0
            } 
            return super.swapCursor(cursor);
        } 
 
        public int getPositionForSection(int section) {
            return mAlphaIndexer.getPositionForSection(section);
        } 
 
        public int getSectionForPosition(int position) {
            return mAlphaIndexer.getSectionForPosition(position);
        } 
 
        public Object[] getSections() {
            return mAlphaIndexer.getSections();
        } 
         
        // @Override 
        // TODO, this is for filtered searches 
        // public Cursor runQueryOnBackgroundThread(CharSequence constraint) {} 
    }