Stormbuster
Stormbuster

Reputation: 76

Add/Remove Material design tabs dynamically

I have successfully implemented material design tabs but now I want to add a button so that user can add more tabs by pressing the button.How can I proceed with this?

Upvotes: 1

Views: 3496

Answers (1)

SRBhagwat
SRBhagwat

Reputation: 1521

https://github.com/slidenerd/materialtest/blob/master/app/src/main/java/materialtest/vivz/slidenerd/activities/ActivityDynamicTabs.java

This is from a nice android tutorial by vivz slidenerd. This is what you were asking for. It has a button Add Tab clicking on which a tab will be added dynamically.

Upvotes: 3

Related Questions