private void SetupViewPager(ViewPager viewPager) { ViewPagerAdapter adapter = new ViewPagerAdapter(SupportFragmentManager); adapter.AddFragment(new TestFragment(), "ONE"); adapter.AddFragment(new TestFragment(), "TWO"); viewPager.Adapter = adapter; }