Swipeable tabs and programmatically adding them
<p>At the moment, I have a ListView filled with data and when an item is selected, a new activity is opened. </p>

<p>I want to change this so that when an item is selected, a new tab should be added with a certain title and the activity showed underneath that tab, I also want the user to be able to swipe between tabs.</p>

<p>After looking on the android development website, I found <a href="https://developer.android.com/design/building-blocks/tabs.html#scrollable" rel="nofollow">https://developer.android.com/design/building-blocks/tabs.html#scrollable</a> which shows an example of the Play Store app and the scrollable tabs they have there. However, I cannot find any examples of this would be set up and also I could programmatically add tabs.</p>
