Change viewpager item based on click event of viewpagerindicator icon
<p>I am using Viewpager and viewpagerindicator to display some content. Currently if we swipe the indicator selected item will change. But I want the vice versa i.e when I click on circle I need to change viewpager item.</p>

<p>Here is the code</p>

<pre><code> &lt;android.support.v4.view.ViewPager
    android:id="@+id/pager"
    android:layout_width="fill_parent"
    android:layout_height="0dp"
    android:layout_weight="1"
    /&gt;
&lt;com.viewpagerindicator.CirclePageIndicator
    android:id="@+id/indicator"
    android:padding="10dip"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    app:fillColor="#FFCC0000"
    app:snap="true"

    /&gt; 
</code></pre>
