Пример #1
0
		protected override void OnCreate(Bundle savedInstanceState) {
			base.OnCreate(savedInstanceState);
			SetContentView(Resource.Layout.activity_main);

			var transaction = SupportFragmentManager.BeginTransaction();
			var fragment = new ElevationBasicFragment();
			transaction.Replace(Resource.Id.sample_content_fragment, fragment);
			transaction.Commit();
		}
Пример #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_main);

            var transaction = SupportFragmentManager.BeginTransaction();
            var fragment    = new ElevationBasicFragment();

            transaction.Replace(Resource.Id.sample_content_fragment, fragment);
            transaction.Commit();
        }