Code example for AlphabetIndexer

0
	 
	public IndexedCursorAdaptor(Context context, int layout, Cursor c,
			String[] from, int[] to) {
		super(context, layout, c, from, to);
		alphaIndexer = new AlphabetIndexer(c, 1, 
				"ABCDEFGHIJKLMNOPQRSTUVWXYZ"); 
	} 
	 
	public int getPositionForSection(int arg0) {
		return alphaIndexer.getPositionForSection(arg0);
	} 
 
	public int getSectionForPosition(int arg0) {
		return alphaIndexer.getSectionForPosition(arg0);
	} 
 
	public Object[] getSections() {
		return alphaIndexer.getSections();
	} 
 
Experience pair programming with AI  Get Codota for Java