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.

2321 questions
1031
votes
57 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,435
  • 3
  • 12
  • 9
397
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,383
  • 16
  • 57
  • 50
348
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
  • 112,774
  • 126
  • 328
  • 461
293
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,103
  • 4
  • 29
  • 47
269
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,090
  • 2
  • 14
  • 16
223
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,239
  • 5
  • 25
  • 39
222
votes
31 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
  • 2,978
  • 2
  • 16
  • 30
205
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,537
  • 3
  • 18
  • 24
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
  • 5,427
  • 4
  • 44
  • 70
140
votes
16 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…
113
votes
9 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,287
  • 2
  • 7
  • 15
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,610
  • 15
  • 43
  • 91
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
  • 69,636
  • 87
  • 281
  • 421
103
votes
7 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,035
  • 3
  • 13
  • 22
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
  • 13,437
  • 3
  • 62
  • 80
1
2 3
99 100