Code example for AlphabetIndexer

Methods: getSections

0
		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;
	} 
 
	@Override 
	public void bindView(View view, Context mContext, Cursor cursor) {
		InterestHolder holder = (InterestHolder) view.getTag();