Code example for AlphabetIndexer

0
 
		@Override 
		public void changeCursor(Cursor cursor) {
			super.changeCursor(cursor);
			 
			mIndexer = new AlphabetIndexer(cursor, SpeakersQuery.LAST_NAME, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
		} 
 
		@Override 
		public int getPositionForSection(int section) {
			return mIndexer.getPositionForSection(section);
		} 
 
		@Override 
		public int getSectionForPosition(int position) {
			return mIndexer.getSectionForPosition(position);
		} 
 
		@Override 
		public Object[] getSections() {
			return mIndexer.getSections();