コード例 #1
0
 public override Android.Support.V4.App.Fragment GetItem(int position)
 {
     switch (position)
     {
     default:
         return(RouteFragment.create(position));
     }
 }
コード例 #2
0
        /**
         * Factory method for this fragment class. Constructs a new fragment for the given page number.
         */
        public static RouteFragment create(int offset)
        {
            RouteFragment fragment = new RouteFragment();
            Bundle        args     = new Bundle();

            args.PutInt(C_OFFSET, offset);
            fragment.Arguments = args;
            return(fragment);
        }