I have a TabLayout and inside that I have ViewPager. I need to dynamically add and remove tab in tablayout(material design). I can able to add the tabs dynamically but while
In addition to existing answers, to remove all tabs from tabLayout.
tabLayout.removeAllTabs();