#IF JAVA
import android.graphics.drawable.ColorDrawable;
import android.graphics.Color;
import android.view.View;
public void bar()
{
ColorDrawable gd = new ColorDrawable(Color.GRAY);
View title = getWindow().findViewById(android.R.id.title);
View titleBar = (View) title.getParent();
//titleBar.setBackgroundDrawable(new ColorDrawable(Color.Gray));
titleBar.setBackgroundDrawable(gd);
}
#End If