0
一直在搜索这一段时间,并努力获得任何工作。Android TabHost改变底部条的颜色
我需要将蓝色底部栏的颜色更改为十六进制值,我已更改了选项卡的背景颜色,但没有更改TanHost上的蓝色。有没有可能改变这一点?我看到youtube使它成为一个很好的红色,所以它必须以某种方式可行!这是建立tabhost:
的选项卡片段通过自己的阶级
// set up the tabhost
mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost);
mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
mTabHost.addTab(mTabHost.newTabSpec("event").setIndicator("Event Locations",
getResources().getDrawable(R.drawable.ic_event_tab)),
EventFragment.class, null);
mTabHost.addTab(mTabHost.newTabSpec("itin").setIndicator("Itinerary",
getResources().getDrawable(R.drawable.ic_itin_tab)),
ItineraryFragment.class, null);
mTabHost.addTab(mTabHost.newTabSpec("info").setIndicator("Kendal Info",
getResources().getDrawable(R.drawable.ic_info_tab)),
KendalInfoFragment.class, null);
mTabHost.getTabWidget().setBackgroundColor(Color.RED);