aysen
aysen

Reputation: 49

set color to tabs

I want to set color to my text HAHA. I mean it should look black. how can I do it?

intent = new Intent().setClass(this, BasicsActivity.class);
intent.putExtra("intentId", 4);
spec = tabHost.newTabSpec("H").setIndicator("HAHA", res.getDrawable(R.drawable.hand)).setContent(intent);
tabHost.addTab(spec);

Upvotes: 0

Views: 265

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007554

Instead of using setIndicator() that takes a String and a Drawable, use the version of setIndicator() that takes a View, and inflate your own layout.

Upvotes: 1

Related Questions