Exemplo n.º 1
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView (Resource.Layout.Main);

			if (bundle == null) {
				FragmentTransaction transaction = FragmentManager.BeginTransaction ();
				var fragment = new CustomTransitionFragment ();
				transaction.Replace (Resource.Id.sample_content_fragment, fragment);
				transaction.Commit ();
			}
		}
Exemplo n.º 2
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			// Set our view from the "main" layout resource
			SetContentView (Resource.Layout.Main);

			var transaction = this.SupportFragmentManager.BeginTransaction ();
			CustomTransitionFragment fragment = new CustomTransitionFragment ();
			transaction.Replace (Resource.Id.sample_content_fragment, fragment);
			transaction.Commit ();

		}
Exemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            var transaction = this.SupportFragmentManager.BeginTransaction();
            CustomTransitionFragment fragment = new CustomTransitionFragment();

            transaction.Replace(Resource.Id.sample_content_fragment, fragment);
            transaction.Commit();
        }
Exemplo n.º 4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            if (bundle == null)
            {
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                var fragment = new CustomTransitionFragment();
                transaction.Replace(Resource.Id.sample_content_fragment, fragment);
                transaction.Commit();
            }
        }