コード例 #1
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            try
            {
                MyProductsTab = new MyProductsFragment();
                MarketTab     = new MarketFragment();

                var adapter = new MainTabAdapter(SupportFragmentManager);
                adapter.AddFragment(MarketTab, GetText(Resource.String.Lbl_Market));
                adapter.AddFragment(MyProductsTab, GetText(Resource.String.Lbl_MyProducts));

                viewPager.CurrentItem = 2;
                viewPager.Adapter     = adapter;
            }
            catch (Exception exception)
            {
                Methods.DisplayReportResultTrack(exception);
            }
        }
コード例 #2
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            try
            {
                MyProductsTab = new MyProductsFragment();
                MarketTab     = new MarketFragment();

                var adapter = new MainTabAdapter(SupportFragmentManager);
                adapter.AddFragment(MarketTab, GetText(Resource.String.Lbl_Market));
                adapter.AddFragment(MyProductsTab, GetText(Resource.String.Lbl_MyProducts));

                viewPager.CurrentItem = 2;
                viewPager.Adapter     = adapter;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
コード例 #3
0
 private void DestroyBasic()
 {
     try
     {
         ViewPager                = null !;
         TabLayout                = null !;
         MarketTab                = null !;
         MyProductsTab            = null !;
         FloatingActionButtonView = null !;
         CatRecyclerView          = null !;
         CategoriesAdapter        = null !;
         DiscoverButton           = null !;
         FilterButton             = null !;
         KeySearch                = null !;
         Instance = null !;
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
コード例 #4
0
 private void DestroyBasic()
 {
     try
     {
         ViewPager                = null;
         TabLayout                = null;
         MarketTab                = null;
         MyProductsTab            = null;
         FloatingActionButtonView = null;
         CatRecyclerView          = null;
         CategoriesAdapter        = null;
         DiscoverButton           = null;
         FilterButton             = null;
         KeySearch                = null;
         Instance = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }