title: Not able to use viewpager tabs in Android project
body: <p>What I am doing: I am trying to use the view pager tab indicator.</p>
  
  <h3>What I have done:</h3>
  
  <ul>
  <li>I have linked the library</li>
  <li>I have reflected the styles.xml in all the values folders</li>
  <li>Copied all the necessary drawables from sample</li>
  </ul>
  
  <h3>Manifest:</h3>
  
  <pre><code>&lt;activity
      android:name="com.windhyaworks.activities.ActMain"
      android:configChanges="orientation|keyboardHidden"
      android:screenOrientation="portrait"
      android:theme="@style/StyledIndicators" /&gt;
  </code></pre>
  
  <h3>styles.xml</h3>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!--
          Base application theme, dependent on API level. This theme is replaced
          by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
      --&gt;
      &lt;style name="AppBaseTheme" parent="android:Theme.Holo.Light"&gt;
          &lt;!--
              Theme customizations available in newer API levels can go in
              res/values-vXX/styles.xml, while customizations related to
              backward-compatibility can go here.
          --&gt;
      &lt;/style&gt;
  
      &lt;!-- Application theme. --&gt;
      &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
          &lt;!-- All customizations that are NOT specific to a particular API-level can go here. --&gt;
      &lt;/style&gt;
  
      &lt;style name="mydialogstyle" parent="android:style/Theme.Dialog"&gt;
          &lt;item name="android:windowBackground"&gt;@android:color/white&lt;/item&gt;
          &lt;item name="android:windowNoTitle"&gt;false&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="StyledIndicators" parent="AppTheme"&gt;
          &lt;item name="vpiTabPageIndicatorStyle"&gt;@style/CustomTabPageIndicator&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="CustomTabPageIndicator" parent="Widget.TabPageIndicator"&gt;
          &lt;item name="android:background"&gt;@drawable/custom_tab_indicator&lt;/item&gt;
          &lt;item name="android:textAppearance"&gt;@style/CustomTabPageIndicator.Text&lt;/item&gt;
          &lt;item name="android:textColor"&gt;#FF555555&lt;/item&gt;
          &lt;item name="android:textSize"&gt;16sp&lt;/item&gt;
          &lt;item name="android:divider"&gt;@drawable/custom_tab_indicator_divider&lt;/item&gt;
          &lt;item name="android:dividerPadding"&gt;10dp&lt;/item&gt;
          &lt;item name="android:showDividers"&gt;middle&lt;/item&gt;
          &lt;item name="android:paddingLeft"&gt;8dp&lt;/item&gt;
          &lt;item name="android:paddingRight"&gt;8dp&lt;/item&gt;
          &lt;item name="android:fadingEdge"&gt;horizontal&lt;/item&gt;
          &lt;item name="android:fadingEdgeLength"&gt;8dp&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="CustomTabPageIndicator.Text" parent="android:TextAppearance.Medium"&gt;
          &lt;item name="android:typeface"&gt;monospace&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <h2>In the XML graphical I cannot see the layout, and I see these warnings below.</h2>
  
  <pre><code>Missing styles. Is the correct theme chosen for this layout?
  Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
  
  Failed to find style 'vpiTabPageIndicatorStyle' in current theme
  Exception raised during rendering: ViewPager has not been bound.
  Exception details are logged in Window &gt; Show View &gt; Error Log
  
  java.lang.IllegalStateException: ViewPager has not been bound.
      at com.viewpagerindicator.TabPageIndicator.setCurrentItem(TabPageIndicator.java:240)
      at com.viewpagerindicator.TabPageIndicator.onMeasure(TabPageIndicator.java:116)
      at android.view.View.measure(View.java:17430)
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
      at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      at android.view.View.measure(View.java:17430)
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
      at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
      at android.view.View.measure(View.java:17430)
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
      at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:447)
      at android.view.View.measure(View.java:17430)
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
      at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1083)
      at android.widget.LinearLayout.onMeasure(LinearLayout.java:615)
      at android.view.View.measure(View.java:17430)
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
      at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      at android.view.View.measure(View.java:17430)
      at android.widget.LinearLayout.measureVertical(LinearLayout.java:875)
      at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      at android.view.View.measure(View.java:17430)
  </code></pre>