我有下面的代碼:禁用/啓用選項卡:顏色改變,原來
\\Disable
tabHost.getTabWidget().getChildTabViewAt(3).setEnabled(false);
tabHost.getTabWidget().getChildTabViewAt(3).setBackgroundColor(Color.rgb(102, 102, 102));
和:
\\Enable
tabHost.getTabWidget().getChildTabViewAt(3).setEnabled(true);
\\HOWTO?
我如何能恢復的禁用標籤的顏色回到它的原顏色(與漸變和東西),當我再次啓用它?
謝謝,我以爲我嘗試過這樣的事情,但有錯誤。無論如何,當我這樣做時,它就會起作用! – nhaarman 2011-03-24 17:58:01