private void SetUpViewPager(ViewPager viewPager)
        {
            try
            {
                GamesTab   = new GamesFragment();
                MyGamesTab = new MyGamesFragment();

                var adapter = new MainTabAdapter(SupportFragmentManager);
                adapter.AddFragment(GamesTab, GetText(Resource.String.Lbl_Games));
                adapter.AddFragment(MyGamesTab, GetText(Resource.String.Lbl_MyGames));

                viewPager.CurrentItem = 2;
                viewPager.Adapter     = adapter;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Beispiel #2
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            try
            {
                GamesTab   = new GamesFragment();
                MyGamesTab = new MyGamesFragment();

                var adapter = new MainTabAdapter(SupportFragmentManager);
                adapter.AddFragment(GamesTab, GetText(Resource.String.Lbl_Games));
                adapter.AddFragment(MyGamesTab, GetText(Resource.String.Lbl_MyGames));

                viewPager.CurrentItem = 2;
                viewPager.Adapter     = adapter;
            }
            catch (Exception exception)
            {
                Methods.DisplayReportResultTrack(exception);
            }
        }