title: Using Sliding Tabs with Toolbar
body: <p>I've started to change from using <code>ActionBarActivity</code> to <code>AppCompatActivity</code>, but I've also started using the <code>Toolbar</code> as well instead of a standard <code>ActionBar</code>.</p>
  
  <p>However, in one of my activities which has a swiping tab type of layout, the following line seems to be deprecated:</p>
  
  <pre><code>actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
  </code></pre>
  
  <p>Although I have looked at some other answers on Stack Overflow regarding this, is there any built-in way of changing this to support using the <code>Toolbar</code>. If so, could you explain exactly how I would go about changing it? How would deprecated methods like <code>onTabSelected</code> be changed?</p>
  
  <p>Also, I've noticed that the Google Play Music app has what looks like an extended toolbar/section underneath the tabs (see <a href="http://cdn.makeuseof.com/wp-content/uploads/2015/03/MaterialDesignMusicPlayer-Play-Music.jpg?6055c3" rel="nofollow">this image for what I am talking about</a>). How would I be able to have that type of layout?</p>
  
  <p>Thanks in advance.</p>