Code example for ListFragment

Methods: onCreateView

0
		mActivityFirstCreated = true;
	} 
 
	@Override 
	public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
		return super.onCreateView(inflater, container, savedInstanceState);
	} 
 
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		mActivityFirstCreated = true;
	} 
 
	@Override 
	public void onDetach() { 
		super.onDetach(); 
		final Activity activity = getActivity();
		if (activity instanceof SupportFragmentCallback) {
			((SupportFragmentCallback) activity).onDetachFragment(this);
		}