コード例 #1
0
 public void OnViewPagerPageChanged(int position, float positionOffset)
 {
     SlidingTabScrollView.FadeTabs(position, positionOffset);
     mSelectedPosition = position;
     mSelectionOffset  = positionOffset;
     this.Invalidate();
 }
コード例 #2
0
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            mSlidingTabScrollView = view.FindViewById<SlidingTabScrollView>(Resource.Id.sliding_tabs);
            mViewPager = view.FindViewById<ViewPager>(Resource.Id.viewpager);
            mViewPager.Adapter = new ViewBookingsAdapter(this.Activity);

            mSlidingTabScrollView.ViewPager = mViewPager;
        }
コード例 #3
0
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            mSlidingTabScrollView = view.FindViewById <SlidingTabScrollView>(Resource.Id.sliding_tabs);
            mViewPager            = view.FindViewById <ViewPager>(Resource.Id.viewpager);
            mViewPager.Adapter    = new ProfileAdapter(view);

            mSlidingTabScrollView.ViewPager = mViewPager;
        }