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

            var fragTx = FragmentManager.BeginTransaction();
            var frag = new FragmentThatWantsToDisplayADatePickerDialog();
            fragTx.Add(Resource.Id.fragment_container, frag);
            fragTx.Commit();
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            var fragTx = FragmentManager.BeginTransaction();
            var frag   = new FragmentThatWantsToDisplayADatePickerDialog();

            fragTx.Add(Resource.Id.fragment_container, frag);
            fragTx.Commit();
        }