Code example for AlphabetIndexer

Methods: getSectionForPosition

0
		return mIndexer.getPositionForSection(section);
	} 
 
	@Override 
	public int getSectionForPosition(int position) {
		return mIndexer.getSectionForPosition(position);
	} 
 
	@Override 
	public Object[] getSections() {
		return mIndexer.getSections();
	} 
 
	@Override 
	public View newView(Context mContext, Cursor cursor, ViewGroup parent) {
		View v = inflater.inflate(R.layout.item_interest, parent, false);
		InterestHolder holder = new InterestHolder();
		holder.name = (TextView) v.findViewById(R.id.interest_name);
		holder.nbSession = (TextView) v.findViewById(R.id.nb_sessions);
		v.setTag(holder);
		return v;