Code example for ListFragment

Methods: onCreate, setRetainInstance

0
		mHelper.onAttach(activity);
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		if (mHelper == null)
			mHelper = new DreamDroidFragmentHelper(this);
		else 
			mHelper.bindToFragment(this);
		mHelper.onCreate(savedInstanceState);
		setRetainInstance(true);
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		if (mCardListStyle) {
			View view = inflater.inflate(R.layout.card_list_view, container, false);
			return view;
		} 
		return super.onCreateView(inflater, container, savedInstanceState);