title: How to change the font of PagerTabStrip
body: <p>I'm using a ViewPager with a PagerTabStrip and I need to set custom fonts <code>(typeface)</code> , but there is no <code>.setTypeFace</code> function for PagerTabStrip!</p>
  
  <p>Here is my XML code:</p>
  
  <pre><code> &lt;android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/viewPager"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;android.support.v4.view.PagerTabStrip
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/pagerTabStrip"
          android:layout_gravity="top"
          android:background="#FF0000"
          android:textColor="#FFFFFF" /&gt;
  
  &lt;/android.support.v4.view.ViewPager&gt;
  </code></pre>
  
  <p>According to <a href="https://stackoverflow.com/questions/11932820/how-to-set-a-typeface-to-pagertabstrip-text-views">this link</a>, I found a solution that may solve my problem.</p>
  
  <blockquote>
    <p>Get the child views of the PagerTabStrip and check if it is an instance of a TextView. If it is, set the typeface:<br></p>
  </blockquote>
  
  <pre><code>for (int i = 0; i &lt; pagerTabStrip.getChildCount(); ++i) {
  View nextChild = pagerTabStrip.getChildAt(i);
  if (nextChild instanceof TextView) {
     TextView textViewToConvert = (TextView) nextChild;
     textViewToConvert.setTypeface(PUT_TYPEFACE_HERE)
  }
  }
  </code></pre>
  
  <p>But I don't understand what it means.</p>
  
  <p>My layout is:</p>
  
  <p><a href="https://i.stack.imgur.com/D1s3C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D1s3C.png" alt="Image"></a></p>
  
  <p>I want to change the title tab to another font style,.like below:</p>
  
  <p><a href="https://i.stack.imgur.com/WZ1WV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WZ1WV.png" alt="Image"></a></p>