title: How to set a TypeFace to PagerTabStrip text views
body: <p>In my app I'm using a <a href="http://developer.android.com/reference/android/support/v4/view/ViewPager.html" rel="nofollow">ViewPager</a> with a <a href="http://developer.android.com/reference/android/support/v4/view/PagerTabStrip.html" rel="nofollow">PagerTabStrip</a> and I need to set custom fonts to my widgets. To set a font for a <code>Button</code> or a <code>TextView</code> I just extend the class and set a typeface. </p>
  
  <pre><code>public class MyButton extends Button {
  
      public MyButton(Context context) {
          super(context);
          initCustomFont();
      }
  
      public MyButton(Context context, AttributeSet attrs) {
          super(context, attrs);
          initCustomFont();
      }
  
      public MyButton(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
          initCustomFont();
      }
  
      private void initCustomFont() {
          if(!isInEditMode()) {
              Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/boton_regular.ttf");
              setTypeface(tf);
          }
      }
  }
  </code></pre>
  
  <p>But I can't use this method for a <code>PagerTabStrip</code>. Is there another way to set a typeface that can be used with <code>PagerTabStrip</code>?</p>