How to change Color of the tabStrip in Android?
问题 I am trying to change the color of my tabStrip to white, the code below is not working? What am I doing wrong ? getTabHost().getTabWidget().setLeftStripDrawable(Color.WHITE); getTabHost().getTabWidget().setRightStripDrawable(Color.WHITE); getTabHost().getTabWidget().setStripEnabled(true); 回答1: Use any drawable instead of color means setLeftStripDrawable is requiring a drawable resource but you are giving int as a argument. So either use a drawable image here. Or use a xml from drawable