Answers for "android change status bar color xml"

1

android status bar color theming style light xml

<item name="android:statusBarColor">@color/colorPrimaryDark</item>
<item name="android:windowLightStatusBar">true</item>
Posted by: Guest on April-28-2021
0

change status bar color in android studio

if (Build.VERSION.SDK_INT >= 21) {
            Window window = this.getWindow();
            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
            window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            window.setStatusBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
        }
Posted by: Guest on August-04-2021

Code answers related to "android change status bar color xml"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language