public static SmartListViewFragment NewInstance() { var frag = new SmartListViewFragment(); frag.RetainInstance = true; return(frag); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Main); if (savedInstanceState == null) { FragmentManager.BeginTransaction().Add(Resource.Id.SmartListFrame, SmartListViewFragment.NewInstance()).Commit(); } }