Code example for AlphabetIndexer

Methods: setCursor

0
			mAlphabetIndexer = new AlphabetIndexer(getCursor(), BuddiesQuery.LASTNAME, alphabet);
		} 
 
		@Override 
		public Cursor swapCursor(Cursor newCursor) {
			mAlphabetIndexer.setCursor(newCursor);
			mCellStates = newCursor == null ? null : new int[newCursor.getCount()];
			return super.swapCursor(newCursor);
		} 
 
		@Override 
		public View newView(Context context, Cursor cursor, ViewGroup parent) {
			View row = mInflater.inflate(R.layout.row_buddy, parent, false);
			ViewHolder holder = new ViewHolder(row);
			row.setTag(holder);
			return row;
		} 
 
		@Override 
		public void bindView(View view, Context context, Cursor cursor) {
			ViewHolder holder = (ViewHolder) view.getTag();