protected async override void OnCreate(Bundle bundle) { base.OnCreate(bundle); AuthenticationHelper.PlatformParameters = new PlatformParameters(this); adapter = new TabAdapter(this, SupportFragmentManager); pager = FindViewById <ViewPager>(Resource.Id.pager); tabs = FindViewById <PagerSlidingTabStrip>(Resource.Id.tabs); pager.Adapter = adapter; tabs.SetViewPager(pager); pager.OffscreenPageLimit = 2; SupportActionBar.SetDisplayHomeAsUpEnabled(false); SupportActionBar.SetHomeButtonEnabled(false); }
protected async override void OnCreate(Bundle bundle) { base.OnCreate(bundle); AuthenticationHelper.PlatformParameters = new PlatformParameters(this); adapter = new TabAdapter(this, SupportFragmentManager); pager = FindViewById<ViewPager>(Resource.Id.pager); tabs = FindViewById<PagerSlidingTabStrip>(Resource.Id.tabs); pager.Adapter = adapter; tabs.SetViewPager(pager); pager.OffscreenPageLimit = 2; SupportActionBar.SetDisplayHomeAsUpEnabled(false); SupportActionBar.SetHomeButtonEnabled(false); }