コード例 #1
0
ファイル: MainUserFeed.cs プロジェクト: xilef/oden
        public static MainUserFeed NewInstance(int page)
        {
            Bundle args = new Bundle();

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

            return(fragment);
        }
コード例 #2
0
ファイル: MainUserTabFactory.cs プロジェクト: xilef/oden
        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));
            }
        }