Questions tagged [statusbar]

A status bar is an area typically found at the bottom of Graphical User Interfaces that provide information about the computer, the application or other applications.

2434 questions
1085
votes
60 answers

How to change Status Bar text color in iOS

My application has a dark background, but in iOS 7 the status bar became transparent. So I can't see anything there, only the green battery indicator in the corner. How can I change the status bar text color to white like it is on the home screen?
Oleksandr Veremchuk
  • 10,975
  • 3
  • 14
  • 9
403
votes
10 answers

How do I use DrawerLayout to display over the ActionBar/Toolbar and under the status bar?

I've seen in the new material design Side Nav spec that you can display the drawer over the action bar and behind the status bar. How can I implement this?
Chris Banes
  • 31,763
  • 16
  • 59
  • 50
378
votes
23 answers

Height of status bar in Android

What's the height of the status bar in Android? Is it always the same? From my measurements it seems that it's 25dp, but I'm not sure if it has the same height on all platforms. (I want to know this to properly implement a fade transition from an…
hpique
  • 119,096
  • 131
  • 338
  • 476
294
votes
25 answers

iOS 7 status bar back to iOS 6 default style in iPhone app?

In iOS 7 the UIStatusBar has been designed in a way that it merges with the view like this: (GUI designed by Tina Tavčar) It is cool, but it will somewhat mess up your view when you have something at the top part of your view, and it becomes…
Archy Will He 何魏奇
  • 9,589
  • 4
  • 34
  • 50
270
votes
26 answers

Cannot hide status bar in iOS7

I just upgraded my iPhone 5 iOS 7 to four beta version. Now when I run my app from Xcode 5 on this iPhone, status bar doesn’t hide, even though it should. Not Working: [[UIApplication sharedApplication] setStatusBarHidden:YES…
Melih Büyükbayram
  • 3,100
  • 2
  • 17
  • 16
266
votes
39 answers

Android Completely transparent Status Bar?

I've searched the documentation but only found this: Link. Which is used to make the bar translucent? What I'm trying to do is to make the status bar completely transparent (as shown in the image below) and make it backwards compatible for…
Muhammad Ali
  • 3,478
  • 5
  • 19
  • 30
231
votes
21 answers

How to hide iOS status bar

In my iOS video app status bar is hidden in some view controllers. I have done this using following code. [[UIApplication sharedApplication] setStatusBarHidden:YES]; It works for iOS 5 and iOS 6 , but not in iOS 7. I tried with this in particular…
Susitha
  • 3,339
  • 5
  • 27
  • 41
230
votes
37 answers

Changing the Status Bar Color for specific ViewControllers using Swift in iOS8

override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent; } Using the above code in any ViewController to set the statusBar color to White for a specific viewcontroller doesnt work in iOS8 for me. Any…
Anuj
  • 6,987
  • 3
  • 22
  • 25
155
votes
11 answers

Visual Studio Code status bar color

Visual Studio Code's default status bar color is blue, and I find it quite distracting. I used this extension to change the color, but it has stopped working after the 1.10.2 update.
Shahzaib Rahim
  • 1,717
  • 2
  • 9
  • 17
155
votes
6 answers

Change status bar text color to light in iOS 9 with Objective-C

In iOS 9, how do I change the color of the status bar text to white?
reza_khalafi
  • 6,230
  • 7
  • 56
  • 82
154
votes
18 answers

windowSoftInputMode="adjustResize" not working with translucent action/navbar

I have problems with the translucent actionbar/navbar in the new Android KitKat (4.4) and the windowSoftInputMode="adjustResize". Normaly, changing the InputMode to adjustResize, the app should resize itself when keyboard is shown, but here it…
117
votes
10 answers

Status bar height in Swift

How can I get the status bar's height programmatically in Swift? In Objective-C, it's like this: [UIApplication sharedApplication].statusBarFrame.size.height.
Oleshko
  • 2,923
  • 4
  • 17
  • 25
113
votes
14 answers

Status bar won't disappear

I'm creating an application and I want the status bar hidden. When I test the app, the status bar is hidden whilst the splash screen is shown, but once the app is fully loaded, the status bar reappears. I'm using Xcode 5 and iOS 7, and have tried…
user2397282
  • 3,798
  • 15
  • 48
  • 94
109
votes
14 answers

iOS 7 - Status bar overlaps the view

I have a ViewController which is inside a UINavigationcontroller, but the navigationBar is hidden. When I run the app on iOS 7, the status bar shows on top of my view. Is there a way to avoid this? I don't want to write any OS specific code. I…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
99
votes
6 answers

Changing the status bar text color in splash screen iOS 7

I know that are already some stackoverflow questions that say how to change the status bar for all view controllers. I am currently changing the color of status bar this way: if(IS_IOS7) [[UIApplication sharedApplication]…
Tiago Almeida
  • 14,081
  • 3
  • 67
  • 82
1
2 3
99 100