protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Main2);

            txtMensaje = FindViewById <TextView>(Resource.Id.txtMensaje);

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

            transaction.Add(Resource.Id.fragmentContainer, fragment);
            transaction.Commit();
        }
Example #2
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();
        }