protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.Rules); var adapter = new Adapters.GenericFragmentPagerAdapter(SupportFragmentManager, new RuleFragment(Rules.ShortAboutGame) ,new RuleFragment(Rules.HowToPlay) ,new RuleFragment(Rules.Bear)); _viewPager = FindViewById<ViewPager>(Resource.Id.viewPager); _viewPager.Adapter = adapter; _viewPager.PageScrollStateChanged += ViewPagerOnPageScrollStateChanged; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Rules); var adapter = new Adapters.GenericFragmentPagerAdapter(SupportFragmentManager, new RuleFragment(Rules.ShortAboutGame) , new RuleFragment(Rules.HowToPlay) , new RuleFragment(Rules.Bear)); _viewPager = FindViewById <ViewPager>(Resource.Id.viewPager); _viewPager.Adapter = adapter; _viewPager.PageScrollStateChanged += ViewPagerOnPageScrollStateChanged; }