示例#1
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView (Resource.Layout.Main);

			if (SupportFragmentManager.FindFragmentByTag (FRAGTAG) == null ) {
				Android.Support.V4.App.FragmentTransaction transaction = SupportFragmentManager.BeginTransaction ();
				var fragment = new MyCloudFragment ();
				transaction.Add (fragment, FRAGTAG);
				transaction.Commit ();
			}
		}
示例#2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            if (SupportFragmentManager.FindFragmentByTag(FRAGTAG) == null)
            {
                Android.Support.V4.App.FragmentTransaction transaction = SupportFragmentManager.BeginTransaction();
                var fragment = new MyCloudFragment();
                transaction.Add(fragment, FRAGTAG);
                transaction.Commit();
            }
        }