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?
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With