Code example for AlphabetIndexer

0
	private AlphabetIndexer indexer;
 
	public SimpleAlphabetCursorAdapter(Context context, int layout, Cursor c,
			String[] from, int[] to, int sortedColumnIndex) {
		super(context, layout, c, from, to);
		indexer = new AlphabetIndexer(c, sortedColumnIndex, " ABCDEFGHIJKLMNOPQRSTUVWXYZ");
	} 
 
	@Override 
	public int getPositionForSection(int arg0) {
		return indexer.getPositionForSection(arg0);
	} 
 
	@Override 
	public int getSectionForPosition(int position) {
		return indexer.getSectionForPosition(position);
	} 
 
	@Override 
	public Object[] getSections() {
Connect your IDE to all the code out there  Get Codota for Java