I’ve got the following code:
\\Disable
tabHost.getTabWidget().getChildTabViewAt(3).setEnabled(false);
tabHost.getTabWidget().getChildTabViewAt(3).setBackgroundColor(Color.rgb(102, 102, 102));
And:
\\Enable
tabHost.getTabWidget().getChildTabViewAt(3).setEnabled(true);
\\HOWTO?
How can I revert the color of the disabled tab back to it’s original color (with gradient and stuff) when I enable it again?
If you use a Drawable as background you can use:
And once you enable it: