Simple question (I guess). I have this default google tutorial code for tabs:
intent = new Intent().setClass(this, About.class);
spec = tabHost.newTabSpec("albums").setIndicator("About")
.setContent(intent);
tabHost.addTab(spec);
for (int i = 0; i < tabHost.getTabWidget().getTabCount(); i++) {
tabHost.getTabWidget().getChildAt(i).getLayoutParams().height = 50;
}
And I was wondering – is it possible to change text position and (or) background just by adding lines of code to the existing piece, not starting everything over again? Thanks!
So yeah: TEXT POSITION and CUSTOM BACKGROUND (html color). How do I do it? Thanks!
P.S Please don’t start droping links to other tutorials, it’s kinda hard for me to understand those. :/
I found the code I was looking for. Here’s the full code of my Tabs.java activity: