示例#1
0
        public static ProfileFragment NewInstance()
        {
            var f = new ProfileFragment();
            var b = new Bundle();

            f.Arguments = b;
            return(f);
        }
示例#2
0
            public override Android.Support.V4.App.Fragment GetItem(int position)
            {
                switch (position)
                {
                case 0:
                    var frag = ConversationsFragment.NewInstance();
                    return(frag);

                case 1:
                    var frag2 = FriendsFragment.NewInstance();
                    return(frag2);

                case 2:
                    var frag3 = ProfileFragment.NewInstance();
                    return(frag3);
                }

                return(null);
            }