title: How to implement a tabbed viewpager without actionbar in android
body: <p>I want to implement a tabbed view pager where the tabs are not part of the action bar. 
  What is the correct way of doing this since it doesn't seem supported by standard. </p>
  
  <p>So far I have been using the following approach and it seems like it's been so much more effort than it should be that it bothers me:</p>
  
  <ul>
  <li>Create horizontally oriented linear layout to act as tab bar view</li>
  <li>Create individual tab views to populate tab bar along with styling</li>
  <li>Create custom ongesturelistener for left and right swipe to go between tabs</li>
  <li>Create animations for sliding-in/out upon swiping (fragment transactions)</li>
  <li>Create animations for the tab bar upon swiping</li>
  </ul>
  
  <p>This seems like it's way too much work when there is a viewpager and tabbar built in. It seems though this "proper" approach is limited to only being used in conjunction with the actionbar. Can anyone provide a simple example of what I am trying to achieve? (see following picture for clarity).</p>
  
  <p><img src="https://i.stack.imgur.com/N1ifT.jpg" alt="photo for clarity of the type of thing I&#39;m trying to achieve"></p>