title: How to set custom font for TabLayout in Android?
body: <p>I want use <code>TabLayout</code> and <code>ViewPager</code> in my app, but i want set custom font for <code>TabLayout</code> but i can't this!<br>
  I use this code : </p>
  
  <pre><code>Typeface droidSerifMonoTF = Typeface.createFromAsset(getAssets(), "fonts/DroidSerif.ttf");
  
  for (int i = 0; i &lt; mSectionsPagerAdapter.getCount(); i++) {
              TextView t = new TextView(this);
              t.setText(mSectionsPagerAdapter.getPageTitle(i) );
              t.setTypeface(droidSansMonoTF);
  
              actionBar.addTab(actionBar.newTab()
                      .setCustomView(t)
                      .setTabListener(this));
  
          }
  </code></pre>
  
  <p>from this link : <a href="https://stackoverflow.com/questions/17893664/how-to-customize-the-font-of-action-bar-tabs/20211563">Link</a> but don't work me!<br>
  How can i it?</p>