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); } }
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); } }
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); } }
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); } }