Code example for SectionIndexer

Methods: getPositionForSection, getSections

0
		 * Update sticker and data 
		 */ 
		public void refresh() { 
			clear(); 
 
			final Object[] sections = mAdapter.getSections();
			count = sections == null ? 0 : mAdapter.getSections().length;
			firstSectionPosition = count == 0 ? INVALID_POSITION : mAdapter.getPositionForSection(0);
 
			createSticker(position);
		} 
 
		/** 
		 * Get current section height  
		 */ 
		public int getSectionHeight() { 
			return mHeight;
		} 
 
		/** 
		 * Recreate sticker (or null it)