Answers for "android studio change top bar color"

1

android navigation bar color change

<item name="android:navigationBarColor">@color/theme_color</item>
Posted by: Guest on August-21-2020
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 studio change top bar color"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language