title: How to create app bar with icons using TabLayout Android Design?
body: <p>I'm trying to use the new TabLayout in the android design library to create app bar with icons. </p>
  
  <pre><code>public void setupTabLayout(TabLayout tabLayout) {
      tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
      tabLayout.setTabGravity(TabLayout.GRAVITY_CENTER);
      tabLayout.setupWithViewPager(mViewpager);
      tabLayout.getTabAt(0).setIcon(R.drawable.ic_tabbar_library);
      tabLayout.getTabAt(1).setIcon(R.drawable.ic_tabbar_recents);
      tabLayout.getTabAt(2).setIcon(R.drawable.ic_tabbar_favorites);
      tabLayout.getTabAt(3).setIcon(R.drawable.ic_tabbar_notifications);
      tabLayout.getTabAt(4).setIcon(R.drawable.ic_tabbar_settings);
  }
  </code></pre>
  
  <p>Result:</p>
  
  <p><img src="https://i.imgur.com/QJbvBvU.png" alt="app bar with icons"></p>
  
  <p>Please help me to create app bar similar:</p>
  
  <p><img src="https://i.imgur.com/1fgC3yv.png" alt="app bar with icons"></p>
  
  <p>Sorry my english is not good.Thanks is advance !</p>