protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_directory_selection); if (savedInstanceState == null) { SupportFragmentManager.BeginTransaction() .Add(Resource.Id.container, DirectorySelectionFragment.NewInstance()) .Commit(); } }
/// <summary> /// Use this factory method to create a new instance of /// this fragment using the provided parameters. /// </summary> /// <returns>A new instance of fragment <see cref="DirectorySelection.DirectorySelectionFragment"/>.</returns> public static DirectorySelectionFragment NewInstance () { DirectorySelectionFragment fragment = new DirectorySelectionFragment (); return fragment; }
/// <summary> /// Use this factory method to create a new instance of /// this fragment using the provided parameters. /// </summary> /// <returns>A new instance of fragment <see cref="DirectorySelection.DirectorySelectionFragment"/>.</returns> public static DirectorySelectionFragment NewInstance() { DirectorySelectionFragment fragment = new DirectorySelectionFragment(); return(fragment); }