예제 #1
0
파일: MainUserList.cs 프로젝트: xilef/oden
        public static MainUserList NewInstance(int page)
        {
            Bundle args = new Bundle();

            args.PutInt(ARG_PAGE, page);
            MainUserList fragment = new MainUserList()
            {
                Arguments = args
            };

            return(fragment);
        }
예제 #2
0
        public MainUserTabFragment getFragment(int type)
        {
            switch (type)
            {
            case 1:
                return(MainUserFeed.NewInstance(type));

            case 2:
                return(MainUserList.NewInstance(type));

            case 3:
                return(MainUserStats.NewInstance(type));

            default:
                return(MainUserTabFragment.newInstance(type));
            }
        }