Code example for SectionIndexer

Methods: getSections

0
            } 
        } else { 
            if (adapter instanceof SectionIndexer) {
                mListAdapter = (BaseAdapter) adapter;
                mSectionIndexerV1 = (SectionIndexer) adapter;
                mSections = mSectionIndexerV1.getSections();
            } else if (adapter instanceof SectionIndexerV2) {
                    mListAdapter = (BaseAdapter) adapter;
                    mSectionIndexerV2 = (SectionIndexerV2) adapter;
            } else { 
                mListAdapter = (BaseAdapter) adapter;
                mSections = new String[] { " " };
            } 
        } 
    } 
 
	private void scrollTo(float position) {
		int count = mList.getCount();
		mScrollCompleted = false;
		final Object[] sections = mSections;
Connect your IDE to all the code out there  Get Codota for Java