Code example for AlphabetIndexer

Methods: getPositionForSection

0
 
    @Override 
    public int getPositionForSection(int section) {
        if(alphaIndexer != null) {
            try { 
                return alphaIndexer.getPositionForSection(section);
            }catch(CursorIndexOutOfBoundsException e) {
                // Not a problem we are just not yet init 
            } 
        } 
        return 0; 
    } 
 
    @Override 
    public int getSectionForPosition(int position) {
        if(alphaIndexer != null) {
            try { 
                return alphaIndexer.getSectionForPosition(position);
            }catch(CursorIndexOutOfBoundsException e) {
                // Not a problem we are just not yet init 
Stop searching for code, let great code find you!  Add Codota to your java IDE