Details:
I\'m extending ActionBarActivity. Eclipse and SDK fully patched as of 2011-11-06.
try this:
ActionBar bar = getActionBar(); bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#0000ff")));
try one line code :
getActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.MainColor)));