//增加一个新标签TT,显示标题为KK,图标为xw,该标签显示的布局内容为lyRed
tabH.addTab(tabH.newTabSpec("TT").setIndicator("KK",getResources().getDrawable(R.drawable.xw)).setContent(R.id.lyRed));
设置TabHost背景和Tab间颜色:
tabMain.setBackgroundColor(Color.argb(150, 0, 0, 0));
//增加一个新标签TT,显示标题为KK,图标为xw,该标签显示的布局内容为lyRed
tabH.addTab(tabH.newTabSpec("TT").setIndicator("KK",getResources().getDrawable(R.drawable.xw)).setContent(R.id.lyRed));
设置TabHost背景和Tab间颜色:
tabMain.setBackgroundColor(Color.argb(150, 0, 0, 0));