Code example for AlphabetIndexer

0
	AlphabetIndexer mAlphaIndexer;
 
	public ClassicoListAdapter(Context context, int layout, Cursor c,
			String[] from, int[] to) {
		super(context, layout, c, from, to, 0);
		mAlphaIndexer = new AlphabetIndexer(c, 1, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
	} 
 
	@Override 
	public int getPositionForSection(int section) {
		return mAlphaIndexer.getPositionForSection(section);
	} 
 
	@Override 
	public int getSectionForPosition(int position) {
		return mAlphaIndexer.getSectionForPosition(position);
	} 
 
	@Override 
	public Object[] getSections() {
Contextual code suggestions in your IDE  Get Codota for Java