Questions tagged [android-statusbar]

The status bar located on the top of the Android device screen. It displays system status icons and notification icons.

The status bar is the Android device screen area dedicated to the display of notifications, communication of device status. It displays pending notifications on the left and status, such as time, battery level, or signal strength, on the right. Swiping down from the status bar shows notification details.

This tag is to be used with tag.

392 questions
558
votes
32 answers

How to change the status bar color in Android?

First of all it's not a duplicate as in How to change the background color of android status bar How do I change the status bar color which should be same as in navigation bar. I want the status bar color to be same as the navigation bar color
codercat
  • 22,873
  • 9
  • 61
  • 85
170
votes
11 answers

Android statusbar icons color

I was wondering if it's possible to change the statusbar icons colour (not the statusbar colour, colorPrimaryDark) Let's say I want this statusbar with: @android:color/white and the icons in black, is it…
GuilhE
  • 11,591
  • 16
  • 75
  • 116
140
votes
21 answers

How to hide Android StatusBar in Flutter

How to hide the Android Status Bar in a Flutter App?
Pieter
  • 4,721
  • 6
  • 19
  • 18
137
votes
36 answers

How to hide status bar in Android

I referred this link. In that if the user clicks on EditText(for ex To: ) at that time keyboard will be popped out and at the same time the user can be able to scroll to see all remaining views(ex: compose,subject, send button) in that screen.…
user448250
  • 1,614
  • 2
  • 13
  • 15
134
votes
14 answers

Change status bar text color when primaryDark is white

I am trying to reproduce the behaviour of Google Calendar application: but I have not found a way to change the status text color. If i set the colorPrimaryDark as white I cannot see the icons neither text of status bar due their color is white as…
MarcForn
  • 3,321
  • 7
  • 25
  • 39
97
votes
3 answers

Android transparent status bar and actionbar

I've done a few researches on this topic and I couldn't find a complete solution so, step by step and with some trial and error, I finally find out how can we achieve these results: having a transparent or coloured Actionbar and Statusbar. See my…
70
votes
13 answers

Can I set FLAG_LAYOUT_NO_LIMITS only for status bar?

I need to make transparent status bar. I am using getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS) and it is make status bar as I want. But it also affect navigation bar: it became transparent and…
BArtWell
  • 4,176
  • 10
  • 63
  • 106
66
votes
15 answers

Android M Light and Dark status bar programmatically - how to make it dark again?

In the Android M we have ability to make status bar icons dark. To do that we can specify attribute in the theme's xml: true OR we cat set it at runtime with this code: View someView =…
60
votes
11 answers

Android - Making activity full screen with status bar on top of it

I want to make my activity full screen with status bar on top of it like this picture: I have used this code in manifest inside activity tag: 'android:theme="@style/Theme.AppCompat.Light.NoActionBar"' But my view doesn't start from the status bar…
24
votes
9 answers

set windowlightstatusbar property programmatically

As you know we can set the windowLightStatusBar from xml by following codes. true i need to change this attribute true to false or false to true by programmatically. Is there a way to achive it?
aligur
  • 3,387
  • 3
  • 34
  • 51
23
votes
4 answers

CoordinatorLayout status bar padding disappears from ViewPager 2nd page

EDIT of 01/02/2016: Bug should be resolved by applying the code provided by Android Team: https://stackoverflow.com/a/35132144/3397345, see accepted answer below. EDIT of 27/01/2016: Bug still not resolved in v23.1.1. Solutions provided until now…
20
votes
8 answers

Translucent status bar and toolbar

I'd like to integrate something like this: And I've done it like this, but I can't seem to put the imageview below the toolbar. Without the toolbar, I can make it under the status bar, but combining these two are impossible. Here's my…
19
votes
7 answers

the status bar changes it's color to black inside fullscreen dialog fragment android

I'm using dialog fragment. The problem is that the status bar color is changed to black. How to change it to some other color? It's strange cause inside fragment, activity it works fine. Its only black inside DialogFragment @Override …
17
votes
6 answers

Transparent action bar and status bar like Uber

I've done a few researches on this topic but I couldn't found some solution for my App/ Activity. I have tried to get a transparent action bar. First, I have tried to change the themes in my AndroidManifest.xml: values/styles.xml:
17
votes
4 answers

Android : status bar color change for API level below 21

I am trying change status bar color for API level lower than 21.By changing the color primary in Theme style we can change the color in status bar for the API level 21. I am looking for how to change the status bar color for lower version Can any…
1
2 3
26 27