Inheritance: Android.Support.V4.App.Fragment, GoogleApiClient.IConnectionCallbacks, GoogleApiClient.IOnConnectionFailedListener
Ejemplo n.º 1
0
 public static LoginFragment NewInstance (int loginAction)
 {
     var fragment = new LoginFragment ();
     var bundle = new Bundle ();
     bundle.PutInt (LoginActivity.EXTRA_ACTION, loginAction);
     fragment.Arguments = bundle;
     return fragment;
 }
Ejemplo n.º 2
0
        public static LoginFragment NewInstance(int loginAction)
        {
            var fragment = new LoginFragment();
            var bundle   = new Bundle();

            bundle.PutInt(LoginActivity.EXTRA_ACTION, loginAction);
            fragment.Arguments = bundle;
            return(fragment);
        }
Ejemplo n.º 3
0
        protected override void OnCreate (Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);
        
            SetContentView (Resource.Layout.activity_login);

            var loginAction = Intent.GetIntExtra (EXTRA_ACTION, Action.LOGIN);
            var fragment = ResultTargetFragment;
            if (fragment == null) {
                fragment = LoginFragment.NewInstance (loginAction);
                SupportFragmentManager.BeginTransaction ()
                    .Add (Resource.Id.login_fragment, fragment)
                    .Commit ();
            }
        }