Hi,
I have four tabs in my main screen of my app using tabhost which contains four listviews. Is it possible to make these tabs transparent so I can use a background image for the tabs to sit on top. If so how would I go about it, and canm it be done with the code I have.
public class Tabs extends TabActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Resources res = getResources(); // Resource object to get Draw
TabHost tabHost = getTabHost(); // The activity TabHost
TabHost.TabSpec spec; // Reusable TabSpec for each tab
Intent intent; // Reusable Intent for each tab
intent = new Intent().setClass(this, premo.class);
spec = tabHost.newTabSpec("Prem").setIndicator("Premo",
res.getDrawable(R.drawable.icontabs))
.setContent(intent);
tabHost.addTab(spec);
intent = new Intent().setClass(this, champ.class);
// Initialise a TabSpec for each tab and add it to the TabHost
spec = tabHost.newTabSpec("Cham").setIndicator("Cham",
res.getDrawable(R.drawable.cham))
.setContent(intent);
tabHost.addTab(spec);
intent = new Intent().setClass(this, 1.class);
spec = tabHost.newTabSpec("League 1").setIndicator("L",
res.getDrawable(R.drawable.l1))
.setContent(intent);
tabHost.addTab(spec);
intent = new Intent().setClass(this, 2.class);
spec = tabHost.newTabSpec("l2").setIndicator("2",
res.getDrawable(R.drawable.l2))
.setContent(intent);
tabHost.addTab(spec);
tabHost.setCurrentTab(0);
}
}