private void SetMainFragmentByPreset(CropDemoPreset demoPreset)
        {
            var fragmentManager = SupportFragmentManager;

            fragmentManager.BeginTransaction()
            .Replace(Resource.Id.container, MainFragment.NewInstance(demoPreset))
            .Commit();
        }
Beispiel #2
0
        //endregion

        /**
         * Returns a new instance of this fragment for the given section number.
         */
        public static MainFragment NewInstance(CropDemoPreset demoPreset)
        {
            var fragment = new MainFragment();
            var args     = new Bundle();

            args.PutString("DEMO_PRESET", demoPreset.ToString());
            fragment.Arguments = args;
            return(fragment);
        }
        //endregion

        public void SetCurrentFragment(MainFragment fragment)
        {
            _currentFragment = fragment;
        }