public virtual void OnPageSelected(int p0)
 {
     SetCurrentItem(p0);
     if (mListener != null)
     {
         mListener.OnPageSelected(p0);
     }
 }
Ejemplo n.º 2
0
 public void OnPageSelected(int position)
 {
     SetCurrentItem(position);
     if (mListener != null)
     {
         mListener.OnPageSelected(position);
     }
 }
Ejemplo n.º 3
0
 private void value_PageSelected(object sender, ViewPager.PageSelectedEventArgs e)
 {
     if (mScrollState == ViewPager.ScrollStateIdle)
     {
         mTabStrip.OnViewPagerPageChanged(e.Position, 0f);
         ScrollToTab(e.Position, 0);
     }
     if (mViewPagerPageChangeListener != null)
     {
         mViewPagerPageChangeListener.OnPageSelected(e.Position);
     }
 }
Ejemplo n.º 4
0
 void value_PageSelected(object sender, Android.Support.V4.View.ViewPager.PageSelectedEventArgs e)
 {
     if (mScrollState == ViewPager.ScrollStateIdle)
     {
         mTabStrip1.OnViewPagerPageChanged(e.Position, 0f);
         ScrolltoTab(e.Position, 0);
     }
     if (mViewPagerChanngeLListener != null)
     {
         mViewPagerChanngeLListener.OnPageSelected(e.Position);
     }
 }
Ejemplo n.º 5
0
 //Selection d'une page sans défilement
 private void value_PageSelected(object sender, ViewPager.PageSelectedEventArgs e)
 {
     if (mScrollState == ViewPager.ScrollStateIdle) //Permet de faire défiler une fois que l'utilisateur a finis et non avant
     {
         mTabStrip.OnViewPagerPageChanged(e.Position, 0f);
         ScrollToTab(e.Position, 0);
     }
     if (mViewPagerPageChangeListener != null)
     {
         mViewPagerPageChangeListener.OnPageSelected(e.Position);
     }
 }
Ejemplo n.º 6
0
        public void OnPageSelected(int position)
        {
            if (mSnap || mScrollState == ViewPager.ScrollStateIdle)
            {
                mCurrentPage = position;
                mSnapPage    = position;
                Invalidate();
            }

            if (mListener != null)
            {
                mListener.OnPageSelected(position);
            }
        }
        public void OnPageSelected(int position)
        {
            if (IsSnap || scrollState == ViewPager.ScrollStateIdle)
            {
                currentPage = position;
                snapPage    = position;
                Invalidate();
            }

            if (listener != null)
            {
                listener.OnPageSelected(position);
            }
        }
        public void OnPageSelected(int position)
        {
            CurrentItem = position;
            if (_listener != null)
            {
                _listener.OnPageSelected(position);
            }

            if (null != PageSelected)
            {
                PageSelected(this, new PageSelectedEventArgs {
                    Position = position
                });
            }
        }