예제 #1
0
        private void SetupViewPager(ViewPager viewPager)
        {
            ViewPagerAdapter adapter = new ViewPagerAdapter(SupportFragmentManager);
            adapter.AddFragment(new TestFragment(), "ONE");
            adapter.AddFragment(new TestFragment(), "TWO");

            viewPager.Adapter = adapter;
        }
예제 #2
0
        private void SetupViewPager(ViewPager viewPager)
        {
            ViewPagerAdapter adapter = new ViewPagerAdapter(SupportFragmentManager);

            adapter.AddFragment(new TestFragment(), "ONE");
            adapter.AddFragment(new TestFragment(), "TWO");

            viewPager.Adapter = adapter;
        }