コード例 #1
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;
 }
コード例 #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);
        }
コード例 #3
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;
     }
 }
コード例 #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);
            }
        }