Example #1
0
        private SupportFragment CreateFragment(Fragments fragmentEnum)
        {
            SupportFragment f = null;

            switch (fragmentEnum)
            {
                case Fragments.Home:
                    f = new HomeFragment();
                    break;
                case Fragments.Login:
                    f = new LoginFragment();
                    break;
                case Fragments.Profile:
                    f = new ProfileFragment();
                    break;
                case Fragments.RecordAudio:
                    f = new RecordAudioFragment();
                    break;
                case Fragments.RegisterUser:
                    f = new RegisterUserFragment();
                    break;
                case Fragments.Riff:
                    f = new RiffFragment();
                    break;
            }

            return f;
        }
Example #2
0
 public static Android.Support.V4.App.Fragment newInstance(Context context)
 {
     var busrouteFragment = new HomeFragment();
     return busrouteFragment;
 }