public TabsAdapter(Context context, FileViewPager viewPager, Android.App.FragmentManager fm) : base(fm) { mContext = context; mViewPager = viewPager; mViewPager.Adapter = (this); mViewPager.SetOnPageChangeListener(this); }
private void InitMainView() { mViewPager = (FileViewPager)FindViewById(Resource.Id.view_pager); mViewPager.OffscreenPageLimit = 1; InitTabsAdapter(); SetEnableScroll(false); }