コード例 #1
0
        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);
        }
コード例 #2
0
    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);


    }