Code example for ListFragment

Methods: setListShown, isResumed

0
		return new FileLoader(getActivity(), path);
	} 
 
	public void onLoadFinished(Loader<List<File>> loader, List<File> data) {
		adapter.setListItems(data);
		if (isResumed())
			setListShown(true);
		else 
			setListShownNoAnimation(true);
	} 
 
	public void onLoaderReset(Loader<List<File>> loader) {
		adapter.clear();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE