//设置ActionBar背景 Drawable draw=this.getResources().getDrawable(R.drawable.actionbar_bg); getActionBar().setBackgroundDrawable(draw); //设置ActionBar Title字体的颜色 int titleId = Resources.getSystem().getIdentifier("action_bar_title", "id", "android"); TextView title = (TextView)findViewById(titleId); title.setTextColor(this.getResources().getColor(R.color.white));
drawable/actionbar_bg.xml
valuues/colors.xml
#0565CC