Exemplo n.º 1
0
 private void SetData()
 {
     currentItem = 1;
     if (adapter == null)
     {
         adapter = new BannerPagerAdapter(this);
         viewPager.AddOnPageChangeListener(this);
     }
     viewPager.Adapter     = adapter;
     viewPager.Focusable   = true;
     viewPager.CurrentItem = 1;
     if (gravity != GravityFlags.NoGravity)
     {
         indicator.SetGravity(gravity);
     }
     if (isScroll && count > 1)
     {
         viewPager.Scrollable = true;
     }
     else
     {
         viewPager.Scrollable = false;
     }
     if (isAutoPlay)
     {
         StartAutoPlay();
     }
 }
Exemplo n.º 2
0
 public OnClickListenerAnonymousInnerClass2(BannerPagerAdapter outerInstance, int position)
 {
     this.outerInstance = outerInstance;
     this.position      = position;
 }