Code example for ListFragment

Methods: getListAdaptersetListShownNoAnimation, isResumed

0
		loader.setProjection(Database.workUnitColumns);
		return loader;
	} 
 
	public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
		((CursorAdapter)getListAdapter()).changeCursor(cursor);		
		 
		if (isResumed()) {
			setListShown(true);
		} else { 
			setListShownNoAnimation(true);
		} 
	} 
 
	public void onLoaderReset(Loader<Cursor> loader) {
		((CursorAdapter)getListAdapter()).changeCursor(null);		
	} 
 
	public void showProject(long id) {
		mProjectId = id;
Connect your IDE to all the code out there  Get Codota for Java