change the status bar color [ 842 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…