I would like to add multiple tabs on my android App. The number of tabs are dynamic based on the database value. I would like to display first three tabs directly and keep other tabs under a " = " button. How can I do that ? Whats the term for displaying tabs like that ?( Like bootstrap responsive nav bar ). This is how I add tabs.
final TabHost tabHost = getTabHost();
if (condition) {
TabSpec inboxSpec = tabHost.newTabSpec(name1);
inboxSpec.setIndicator(name1);
Intent inboxIntent = new Intent(this, web.class);
inboxIntent.putExtra("vide", oId);
inboxSpec.setContent(inboxIntent);
tabHost.addTab(inboxSpec); // Adding Inbox tab
}
......
......
Please help. I am not familiar with android.
As the picture show I need a toggle button and need to list remaining tabs like the above picture.