![](/img/trans.png)
[英]How can I change the ActionBar color of individual fragments in Android?
[英]How can I change the color of at the bottom of a tabview implemented with fragments
public static void setTabColor(TabHost tabhost) {
for(int i=0;i<tabhost.getTabWidget().getChildCount();i++)
{tabhost.getTabWidget().getChildAt(i).setBackgroundResource(R.color.white);} tabhost.getTabWidget().getChildAt(tabhost.getCurrentTab()).setBackgroundResource(R.color.tab_selected);}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.