change the status bar color  [ 728 views ]

Goal: fit the full screen coloring to our application

Sometimes we need to change the status bar color to create a harmony on the whole screen.
Put this into the main activity:

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  ...
  // change the status bar color
  getWindow().setStatusBarColor(this.getResources().getColor(R.color.custom_statusbar_color));
  ...
}

Simple… and no more blue top on the screen…

#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }