Exemplo n.º 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 AdvancedImmersiveModeFragment ();
				transaction.Add (fragment,FRAGTAG);
				transaction.Commit ();
			}
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            if (FragmentManager.FindFragmentByTag(FRAGTAG) == null)
            {
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                var fragment = new AdvancedImmersiveModeFragment();
                transaction.Add(fragment, FRAGTAG);
                transaction.Commit();
            }
        }