private void setMainFragmentByPreset(CropDemoPreset demoPreset) { var fragmentManager = SupportFragmentManager; fragmentManager.BeginTransaction() .Replace(Resource.Id.container, MainFragment.newInstance(demoPreset)) .Commit(); }
public static MainFragment NewInstance(CropDemoPreset demoPreset) { MainFragment fragment = new MainFragment(); Bundle args = new Bundle(); args.PutInt("DEMO_PRESET", (int)demoPreset); fragment.Arguments = args; return(fragment); }
//endregion /** * Returns a new instance of this fragment for the given section number. */ public static MainFragment newInstance(CropDemoPreset demoPreset) { MainFragment fragment = new MainFragment(); Bundle args = new Bundle(); args.PutString("DEMO_PRESET", demoPreset.ToString()); fragment.Arguments = args; return(fragment); }
//endregion public void setCurrentFragment(MainFragment fragment) { mCurrentFragment = fragment; }
void SetMainFragmentByPreset(CropDemoPreset demoPreset) { SupportFragmentManager.BeginTransaction() .Replace(Resource.Id.container, MainFragment.NewInstance(demoPreset)) .Commit(); }