Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tabs without icon

I'm having a look at the "Tab Layout" tutorial which is perfectly clear and my question is very simple : is it possible to create tabs with no icon, just a single title?

like image 341
thomaus Avatar asked Dec 16 '10 12:12

thomaus


1 Answers

is it possible to create tabs with no icon, just a single title?

Yes. If you are doing something like:

spec = tabHost.newTabSpec("tab_name").setIndicator("Some tab",
                      res.getDrawable(R.drawable.ic_tab_artists))
                  .setContent(intent);

Change it to:

spec = tabHost.newTabSpec("tab_name").setIndicator("Some tab").setContent(intent);
like image 75
Cristian Avatar answered Sep 25 '22 13:09

Cristian