Code example for AlphabetIndexer

0
	public InterestsAdapter(Context mContext, boolean isFromSession) {
		super(mContext, null, 0);
 
		mIsFromSession = isFromSession;
		inflater = LayoutInflater.from(mContext);
		mIndexer = new AlphabetIndexer(null, InterestsQuery.NAME, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
	} 
 
	@Override 
	public void changeCursor(Cursor cursor) {
		super.changeCursor(cursor);
 
		mIndexer.setCursor(cursor);
	} 
 
	@Override 
	public int getPositionForSection(int section) {
		return mIndexer.getPositionForSection(section);
	} 
 
	@Override