title: View Pager circular indicator to custom View Pager
body: <p>I am using this <a href="https://github.com/castorflex/VerticalViewPager" rel="nofollow">Vertical View Pager</a> in one of my app. This view pager scrolls vertically instead of traditional view pager which scrolls horizontally.</p>
  
  <p>I want to show View Pager indicator in this View Pager. I came across this <a href="https://github.com/JakeWharton/Android-ViewPagerIndicator" rel="nofollow">View Pager Indicator</a> library to show indicator to the view pager.</p>
  
  <p>Below is my xml code:</p>
  
  <pre><code>&lt;RelativeLayout
              android:id="@+id/scroll_layout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:visibility="visible"&gt;
  
              &lt;com.viewpagerindicator.CirclePageIndicator
                  android:id="@+id/view_pager_indicator"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:padding="10dip" /&gt;
  
              &lt;fr.castorflex.android.verticalviewpager.VerticalViewPager
                  android:id="@+id/view_pager"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"/&gt;
  
          &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Below is my activity code to attach view pager with the view pager indicator</p>
  
  <pre><code>mViewPager = (VerticalViewPager) findViewById(R.id.view_pager);
  mViewPagerIndicator = (CirclePageIndicator) findViewById(R.id.view_pager_indicator);
  mViewPagerIndicator.setViewPager(mVerticalViewPager); //need to pass the object of support v4 ViewPager
  </code></pre>
  
  <p>The third line in the above code gives error. This is because the setViewPager() method takes <code>android.support.v4.view.ViewPager</code> as parameter and I am sending object of VerticalViewPager.</p>
  
  <p>How can I send the Object this CustomViewPager? How can I view pager indicator to this CustomViewPager?</p>
  
  <p>Please help me out.</p>