AlphabetIndexer setCursor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for AlphabetIndexer setCursor method.

This code example shows how to use the following methods:setCursor
	@Override 
	public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
		ListView l = getListView();
		l.setFastScrollEnabled(false);
		adapter.swapCursor(cursor);
		indexer.setCursor(cursor);
		if(isResumed()) setListShown(true); 
		else setListShownNoAnimation(true); 
		l.setFastScrollEnabled(true);
	} 
	@Override 
	public void onLoaderReset(Loader<Cursor> loader) {
		adapter.swapCursor(null);
		indexer.setCursor(null);
	} 
} 
5
CodeRank
This code example shows how to use the following methods:setCursor
 
	@Override 
	public void changeCursor(Cursor cursor) {
		super.changeCursor(cursor);
		if (mIndexer != null)
			mIndexer.setCursor(cursor);
	} 
 
	@Override 
	public int getPositionForSection(int section) {
		if (mIndexer == null)
			return -1; 
		return mIndexer.getPositionForSection(section);
	} 
 
	@Override 
	public int getSectionForPosition(int position) {
		if (mIndexer == null)
			return -1; 
		return mIndexer.getSectionForPosition(position);
4
CodeRank
This code example shows how to use the following methods:setCursor
		return mAlphaIndexer.getSections();
	} 
 
	@Override 
	public Cursor swapCursor(Cursor c) {
		mAlphaIndexer.setCursor(c);
		return super.swapCursor(c);
	} 
 
} 
4
CodeRank
This code example shows how to use the following methods:setCursor
 
	@Override 
	public void changeCursor(Cursor cursor)
	{ 
 
		indexer.setCursor(cursor);
		super.changeCursor(cursor);
 
	} 
} 
3
CodeRank

Related AlphabetIndexer setCursor Questions & Answers:

setCursor Method Overview
Sets a new cursor as the data set and resets the cache of indices.
See Code Examples for other Android AlphabetIndexer Methods: