I create tabs dynamically in a TabActivity. Is there a simple way to ask for the number of existing Tabs?
I create tabs dynamically in a TabActivity. Is there a simple way to ask for the number of existing Tabs?
TabLayout tabLayout = findViewById(R.id.tabs);
int totalTabs = tabLayout.getTabCount();