Esempio n. 1
0
 public override Android.Support.V4.App.Fragment GetItem(int position)
 {
     Android.Support.V4.App.Fragment fr = new Android.Support.V4.App.Fragment();
     switch (position)
     {
         case 0:
             fr = new FirstFragment();
             break;
         case 1:
             fr = new SecondFragment();
             break;
         case 2:
             fr = new ThirdFragment();
             break;
         case 3:
             fr = new FourthFragment();
             break;
     }
     return fr;
 }
Esempio n. 2
0
        public override Android.Support.V4.App.Fragment GetItem(int position)
        {
            Android.Support.V4.App.Fragment fr = new Android.Support.V4.App.Fragment();
            switch (position)
            {
            case 0:
                fr = new FirstFragment();
                break;

            case 1:
                fr = new SecondFragment();
                break;

            case 2:
                fr = new ThirdFragment();
                break;

            case 3:
                fr = new FourthFragment();
                break;
            }
            return(fr);
        }