androidtabs
Here is an example of android tabs. We realized them during our project that you can find here.

You introduce them with the TabHost in the xml file, and you manage them in the java file, as follows:

TabHost tabHost = (TabHost) findViewById(R.id.tabHost);

 

tabHost.setup();
TabHost.TabSpec tabSpec = tabHost.newTabSpec("send");
tabSpec.setContent(R.id.tabSend);
tabSpec.setIndicator("Send");
tabHost.addTab(tabSpec);

tabSpec = tabHost.newTabSpec("receive");
tabSpec.setContent(R.id.tabRecieve);
tabSpec.setIndicator("Receive");
tabHost.addTab(tabSpec);

Back

Create android tabs
Tagged on:         

One thought on “Create android tabs

Leave a Reply