public override Fragment GetItem(int p)
 {
     var fragment = new DummySectionFragment();
     var args = new Bundle();
     args.PutInt(DummySectionFragment.ArgSectionNumber, p + 1);
     fragment.Arguments = args;
     return fragment;
 }
Beispiel #2
0
        public override Fragment GetItem(int p)
        {
            var fragment = new DummySectionFragment();
            var args     = new Bundle();

            args.PutInt(DummySectionFragment.ArgSectionNumber, p + 1);
            fragment.Arguments = args;
            return(fragment);
        }
 public override Fragment GetItem(int p)
 {
     switch (p) {
     case 0:
         // The first section of the app is the most interesting -- it offers
         // a launchpad into the other demonstrations in this example application.
         return new LaunchpadSectionFragment();
     default:
         // The other sections of the app are dummy placeholders.
         var fragment = new DummySectionFragment();
         var args = new Bundle();
         args.PutInt(DummySectionFragment.ArgSectionNumber, p + 1);
         fragment.Arguments = args;
         return fragment;
     }
 }
Beispiel #4
0
        public override Fragment GetItem(int p)
        {
            switch (p)
            {
            case 0:
                // The first section of the app is the most interesting -- it offers
                // a launchpad into the other demonstrations in this example application.
                return(new LaunchpadSectionFragment());

            default:
                // The other sections of the app are dummy placeholders.
                var fragment = new DummySectionFragment();
                var args     = new Bundle();
                args.PutInt(DummySectionFragment.ArgSectionNumber, p + 1);
                fragment.Arguments = args;
                return(fragment);
            }
        }