예제 #1
0
        public static Fragment2 NewInstance()
        {
            var frag2 = new Fragment2 {
                Arguments = new Bundle()
            };

            return(frag2);
        }
예제 #2
0
            public override Android.Support.V4.App.Fragment GetItem(int position)
            {
                switch (position)
                {
                case 0:
                    return(Fragment1.NewInstance());

                case 1:
                    return(Fragment2.NewInstance());
                }
                return(null);
            }