wow
wow

Reputation: 3899

Swipeable tabs and programmatically adding them

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

Answers (1)

wtsang02
wtsang02

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

Related Questions