Example #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            FragmentTransaction transaction = FragmentManager.BeginTransaction();
            SlidingTabsFragment fragment    = new SlidingTabsFragment();

            transaction.Replace(Resource.Id.sample_content_fragment, fragment); //Remplace sampe_content_fragment avec fragment
            transaction.Commit();                                               //Applique la transaction
            SetContentView(Resource.Layout.SecondPage);
        }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            SlidingTabsFragment.SamplePagerAdapter A = new SlidingTabsFragment.SamplePagerAdapter();
            base.OnCreate(savedInstanceState);
            FragmentTransaction transaction = FragmentManager.BeginTransaction();
            SlidingTabsFragment fragment    = new SlidingTabsFragment();

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