android status bar color

Solutions on MaxInterview for android status bar color by the best coders in the world

showing results for - "android status bar color"
Lorenzo
10 Jul 2020
1// for my fellow react-native developers
2// add this in styles.xml
3<resources>
4    <!-- Base application theme. -->
5    <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
6        <!-- Customize your theme here. -->
7        <item name="android:textColor">#000000</item>
8        <item name="android:windowDisablePreview">true</item>
9        <item name="android:windowBackground">#000000</item>
10        <item name="android:colorBackground">#000000</item>
11        <item name="android:statusBarColor">#000000</item>//<--add_this
12    </style>
13
14</resources>
Davide
09 Sep 2020
1 public void statuscolor(){
2        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
3            Window window = getWindow();
4            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
5            window.setStatusBarColor(Color.parseColor(getPreferences().getString(Constant.SECONDARY_COLOR, Constant.SECONDARY_COLOR)));
6        }
7    }
María Alejandra
12 Jan 2020
1getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//  set status text dark
2
3getWindow().setStatusBarColor(ContextCompat.getColor(MainActivity.this,R.color.colorPrimaryDark));// set status background white
Raphael
19 Jan 2016
1Window window = activity.getWindow();
2
3// clear FLAG_TRANSLUCENT_STATUS flag:
4window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
5
6// add FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag to the window
7window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
8
9// finally change the color
10window.setStatusBarColor(ContextCompat.getColor(activity,R.color.my_statusbar_color));
Carter
17 Apr 2018
1WindowInsetsControllerCompat(<window>, <view>).isAppearanceLightStatusBars = Boolean
2Window window = Activity.getWindow();
3View view = window.getDecorView();
4
5// You need androidx.core for this
Piers
12 Sep 2018
1 <!-- in themes -->
2<item name="android:statusBarColor">@color/color</item>
queries leading to this page
android status bar colostyle status bar androidandroid status bar colorhow change status bar text colorstatusbarcolor android id colorandroid status bar colorstatus bar android change colorandroid change status bar themeandroid studio how to change color of status barhow to set text color of status bar in androidandroid status bar no colorhow to status bar color change i an activitystatus bar background androidchange status bar color with activity background color androidandroid statusbar whitehow to change status bar color androi dappactivity window statusbarcolorhow to change status bar colorandroid set window status color from viewmodelchange status bar color android kotlinchange status bar color androidandroid application default status bar colorchange status bar color android on diloghow to change the color of the status bar in kotlin of specific activityhow to set status bar color in androidhow to set color of status bar in androidset status bar color to white androidandroid xml status bar color how to change the status bar color from activity in androidhow to change status bar text to dark androidset status bar text color android studiostatus bar custom color androidhow to change status bar automatically androidhow to set status bar color in android xmlandroid change topbar color in appstatus bar text color androidandroid revert status bar color programmaticallychange font color statusbarshow status bar androidandroid styles statusbar colorandroid developer status bar colorandroid status bar content colorandroid status bar multiple colors how to change android studio status bar text color into blackcustom status bar color androidhow to change color of status bar in android studiocolorprimarydark white statusbar text color also white androidchange color status bar androidchaneg the color of status bar i androidhow to make status bar color white in androidandroid change top bar colorchange status bar color kotlinstyles status bar colorchange status bar background color androidandroid status barhow to change the status bar color in androidhow to change status bar color in android studiostatusbar white androidstatus bar multiple colors androidset status bar color transparent androidchange status bar text color android programmaticallystatus bar color android programmaticallyhow to change the status bar color to white in androidandroid status bar back colorwhy use status bar color androidhow to change status bar color in android programmatically when hideandroid studio status bar color themeset status bar color programmatically androidchange status bar icons color android programmaticallydark theme status text colorandroid change color of status bar programmaticallyandroid studio change color notification barchange status bar color android programmaticallyset default statusbar color android programmaticallyhow to make status bar white on androidandroid studio change battery network bar colorstatus bar color changerstatus bar based on theme xmlstatus bar color change androidhow to change status bar color in andoid studiochange color of status bar androidstatus bar action mode color androidandroid studio change status barset status bar tint color androidchang status bar colorhwhat is the best way to set status bar color in android 01android studio statusbar colorhow to change the color of status bar android studiochange status bar color for each activity androidandroid change system status bar color programmaticallychange status bar color android activityhow to change the color of notification bar in android studiochange statusbar text kotlin androidkotlin change status bar colorandroid status bar color texthow to change status bar color of android t 3dxmlandroid change status bar colorchange status bar colorhow to change android studio status bar color into blackandroid change color of status barchange color of status bar text androidcusotm satus bar color androidchange statusbar color androidchange color value statusbarcolor android ioshow to style status bar in android studio javahwhat is the best way to set status bar color in androidandroid set statusbar colormake status bar white androidstatus bar color programmatically androidwhy action bar color doesn 27t change in mobile device but works in emulatorchange color of notification bar androidchange status bar color android studio styleandroid status bar color kotlonapp bar doesn color status bar android studiochange the status bar color android developerandroid top status bar color changeshow color on status bar androidchange status bar color runtime androidsetting notification bar color in android stylesstatus bar color change android studiowhite status bar android kotlinandroid studio java change status bar color programmaticallyandroid bar color changestatus bar dual colors androidchanging status bar color androidchange status bar color runtime android kotlinsignal status bar color rgb ui designandroid change status bar programmaticallyandoid change color of status barhow to change color of status bar topchande ststus barcolor androidstatusbar color android kotlinstatus bar color not changing androidset the color of text in status bar and navigation bar androidchange status bar coloor android studiokotlin set color of status barchange statusbar text color androidactivity status bar colorandroid status bar color transparentstatus bar text color android csschange the status bar color android for api 16change status bar icon color androidhow to change status bar color in kotlinstatus bar tex color androidstatus bar clor change in androidandroid change status bar text colorhow to change status bar clor in androidchange background color of status bar kotlinandroid status bar white style how to change color of status bar in androidchange status bar color android themehow to change statusbar color in androidandroid status tool bar colorhow to change status bar color in andoirdandiord status bar colorset status bar color in androidandroid set status bar color programmaticallychnage statusbar color android show to change status bar background color in android programmaticallyhow to manually change the color of the status barhow to change toolbar color and status bar androidhow to change status bar color androidchange status bar color material androidandroid statusbar color themeing stylehow to status bar color change in an activitychange status bar in androidstatus bar goes from dark text to white textandroid change status bar background colorhow to change the color of the status bar in kotlinandroid status bar color changeandroid text color of status barandroid statusbar colorhow to change status bar color in for activity androidstatusbar text color android stusioandroid style status bar colorhow to set status bar whitehow to change the top bar color on androidchange status bar color android stusiohow to change status bar color progrmatically in androidhow to change the text color of the statusbar android studiostatus bar 2 colors androidhow to change status bar color in androidchange status bar color android javachange status bar color android studiochange status bar text color androidhow to change bottom status bar color in androidshow status bar content in black androidandroid mvm set window statusbarcolorstatus bar color androidchange status bar text color to black androidandroid studio change color of top bar textstatus bar color text androidstatus bar change colorstatus bar color change automaticallyhow to change the color of the notification bar on android studiosetting status bar color android on a pagechange color of android status barhow to change status bar color android studiochange color of status bar android programmaticallyhow to change status bar color and heading color in android studioandroid studio status bar text colorandroid status bar text color programmaticallyhow to change color of text of status bar in androidstatus bar text color androidstatus bar color not changed in androidchange status bar and menu bar color androidandroid studio set status bar colorchange status bar android studiohow to make status bar black in androidhow to change color of status barstatus bar text color white androidhow to change notification bar color in androidset status bar background color androidandroid studio android studio change app bar text colordifferent status bar color androidstatus bar change color androidhow to change status bar color in android programmaticallyshow status bar android studiochange top bar color androidhow to chenge statusbar text and background colour programaticly android studioswiftui 5c status bar colorset time bar androidandroid application default status bar color set in android studiohow to change color of status bar and text in android programmaticallystatus bar text color change androidwhite status bar androidchange status bar color programmatically androidhow to style status bar in android studioandroid studio change color of status bar in an activityandroid status bar color is whiteset status bar color white androidstatusbar text color androidandroid custom status bar colorgreen status bar androidchange the status bar text color android studichange color of status barchange status bar color android full screenhow to change status bar style in android studioandroid change system status bar colorandroid topbar colorchange status bar color htmlchange color status bar activity androidchange statusbar color in android studiohow to set status bar colour system defualt in android programmaticallyset status bar color android xmledditing the status bar color in android studiohow to change status bar text color in androidstatus bar color android studiomake status bar color white in whole application in androidchange status bar color and navigation status bar android kotlinset status bar text color androidchange color of text under api 23status bar text color android night modechange color of notification bar android studiostatus bar background color androidstatus bar style androidandroid 3a change status bar text color with white 2fblackhow to override android statusbar colorandroid change status bar color and icon colorset status bar color androidcolor of content on status barhow to make status bar color blackin androidhow to change status bar color of android xmlandroid status bar change text colorchange color programmatically androidandroid dev edit status barandroid recolor status barkotlin make statusbarhow to change status bar color android javaset status bar color android javahow to change color of status bar text in androidhow to change the color of the status bar androidhow to set status bar text colour system defult android studiouhow to make the status bar color white in androidchang status bar color kotlinandroid studio change color of top barstatus bar color android kotlinmake status bar text color dark androidsame status bar color as per the layout androidchange color status bar text color androidset top indicator android colormatch color of status bar with activity color android studiochange the status bar color androidandroid studio change color of status barhow to set the color on items on the windows status bar android kotlinwebsite change status bar colorhow to change status bar automatically android programmaticallychange status bar androidstatus bar textchange androihow to set dark status bar in androidstatus bar colorandroid kotlin topbar colorandroid status bar text colorchange background color of status bar in androidhow to change status bar color text color in android programmaticallychange status bar color auto place activity in androidchange status bar text color android studiohow to change the color of status bar programatically in android studioandroid studio change status bar text colorhow to change the color of status bar in androidstatusbar color android studipandroid status bar white backgroundonly change in statusbar color kotlinandroid bar colorbest status bar color androidchange status bar color for different activity in androidhow to remove status bar color in androidandroid change status bar color programmaticallyhow to chenge statusbar text and background colour programaticly android studiouchange status bar icon color change android programmaticallyhow to change status bar color to white in android programmaticallyandroid status bar colorchangehow to change status bar color programmatically in androidandroid status bar color whiteandroid status bar color programmaticallychange status bar color android studio activitygive status bar color androidhow to change progress bar color in android programmaticallystatus bar in androidstandard status bar color androidandroid studio status bar icon colorhow to change the color od status bat in androidandroid kotlin change status bar colorandroid status bar color themeandroid change colour of status barandroid black status barchange the color of status bar in android kotlinandroid status bar text color to darkandroid set status bar colorchange android status bar colorstatus bar text color black androidhow to set statusbar colour in android xmlhow to change color in status bar androidset color for status bar androidset status bar text colorhow to manually change the color of the status bar in kotlinstatus bar color kotlinchange status bar icon color android programmaticallychange status bar color in fragment androidapp background on status bar androidandroid status bar text color changeandroid statusbarcolorstatus bar in android studioandroid studio change status bar colorhow to change status bar font color androidstatus bar color transparent androidhow to merge the status bar color in androidandroid show status barandroid studio status bar coloredit status bar color android when app is in backgroundandroid status bar nameset status bar color android stylechange status bar icon color android p programmaticallykotlin status bar colorstatus bar white color black android from styleset status bar color to default androidactivity custom status bar color programmically androidchange text color status bar androidhow to change status bar color of android thow to change top status bar color in androidhow to set notification bar color in androidstatus bar color in androidandroid status bar color