コード例 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Main3);

            fragmentCaps = new FragmentCaps();
            var fragmentSender = new FragmentSender();
            var transaction    = FragmentManager.BeginTransaction();

            transaction.Add(Resource.Id.contenedorIzquierdo, fragmentSender);
            transaction.Add(Resource.Id.contenedorDerecho, fragmentCaps);
            transaction.Commit();
        }
コード例 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

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

            PrepararBotones();

            fragment = new FragmentCaps();
            var transaction = FragmentManager.BeginTransaction();

            transaction.Add(Resource.Id.fragmentCapsContainer, fragment);
            transaction.Commit();
        }