There is a transparent activity A.
A is using Theme.Translucent.NoTitleBar in AndroidManifest to be transparent.
What I want is to change status bar color to black remaining activity transparent.
Please help.
There is a transparent activity A.
A is using Theme.Translucent.NoTitleBar in AndroidManifest to be transparent.
What I want is to change status bar color to black remaining activity transparent.
Please help.
From android Api-Level 21 you can use
Window window = activity.getWindow();
window.setStatusBarColor(activity.getResources().getColor(R.color.my_statusbar_color));
select black
android.R.color.black
To show and hide the status bar
ActionBar actionBar = getActionBar();
actionBar.show();
actionBar.hide();