Code example for ListFragment

Methods: getActivity, getParentFragment, setUserVisibleHint

0
		Utils.scrollListToPosition(getListView(), position);
	} 
 
	@Override 
	public void setUserVisibleHint(final boolean isVisibleToUser) {
		super.setUserVisibleHint(isVisibleToUser);
		final Activity activity = getActivity();
		if (activity instanceof SupportFragmentCallback) {
			((SupportFragmentCallback) activity).onSetUserVisibleHint(this, isVisibleToUser);
		} 
		final Fragment fragment = getParentFragment();
		if (fragment instanceof SupportFragmentCallback) {
			((SupportFragmentCallback) fragment).onSetUserVisibleHint(this, isVisibleToUser);
		} 
	} 
 
	@Override 
	public boolean triggerRefresh() { 
		return false; 
	}