public void OnViewPagerPageChanged(int position, float positionOffset) { SlidingTabScrollView.FadeTabs(position, positionOffset); mSelectedPosition = position; mSelectionOffset = positionOffset; this.Invalidate(); }
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; }
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; }