Reputation: 3899
At the moment, I have a ListView filled with data and when an item is selected, a new activity is opened.
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.
After looking on the android development website, I found https://developer.android.com/design/building-blocks/tabs.html#scrollable 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.
Upvotes: 3
Views: 545
Reputation: 18873
TheNewBoston If you are lost, you may want to go a few tutorials back to 84 in this list
On the side note, have you consider fragments and a viewpager?
Upvotes: 3