how to create dynamic tabs when I press floating action button

How to create Dynamic tabs when i press the floating action button. mean when i press the floating action button it will pop up a msg that what do you want add a fragment tab or to delete it. when i press the button then a new fragment tab create.