Esempio n. 1
0
        public static MainUserTabFragment newInstance(int page)
        {
            Bundle args = new Bundle();

            args.PutInt(ARG_PAGE, page);
            MainUserTabFragment fragment = new MainUserTabFragment();

            fragment.Arguments = args;
            return(fragment);
        }
Esempio n. 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));
            }
        }
Esempio n. 3
0
        public override Java.Lang.ICharSequence GetPageTitleFormatted(int position)
        {
            MainUserTabFragment tab = mTabFactory.getFragment(position + 1);

            return(new Java.Lang.String(tab.mTabTitle));
        }