Code example for SectionIndexer

Methods: getPositionForSection

0
    public int getPositionForSection(int sectionIndex) {
        if (mIndexer == null) {
            return -1; 
        } 
 
        return mIndexer.getPositionForSection(sectionIndex);
    } 
 
    /** 
     * @param position relative position in the indexed partition 
     */ 
    public int getSectionForPosition(int position) {
        if (mIndexer == null) {
            return -1; 
        } 
 
        return mIndexer.getSectionForPosition(position);
    } 
 
    @Override 
Contextual code suggestions in your IDE  Get Codota for Java