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.
2,445
questions
1087
votes
61
answers
672k
views
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 ...
403
votes
10
answers
241k
views
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?
381
votes
23
answers
450k
views
Height of status bar in Android [duplicate]
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 ...
294
votes
25
answers
184k
views
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 ...
271
votes
26
answers
148k
views
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 ...
268
votes
40
answers
385k
views
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 ...
234
votes
37
answers
309k
views
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 ...
231
votes
21
answers
193k
views
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 , ...
162
votes
11
answers
111k
views
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.
156
votes
18
answers
127k
views
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 ...
154
votes
6
answers
167k
views
Change status bar text color to light in iOS 9 with Objective-C [duplicate]
In iOS 9, how do I change the color of the status bar text to white?
119
votes
10
answers
84k
views
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.
113
votes
14
answers
92k
views
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 ...
109
votes
14
answers
111k
views
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 ...
99
votes
6
answers
47k
views
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)
[[...
94
votes
21
answers
94k
views
Flutter - How to set status bar color when AppBar not present
How to set status bar color when AppBar not present.
I have tried this but not working.
Widget build(BuildContext context) {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
...
91
votes
18
answers
65k
views
iOS 7 Status bar with Phonegap
In iOS 7, Phonegap applications will appear underneath the status bar. This can make it difficult to click on buttons/menus that have been placed at the top of the screen.
Is there someone who knows ...
89
votes
9
answers
112k
views
Hiding the status bar with React Native
How do you hide the status bar for iOS or Android when developing with React Native? I've imported StatusBar, but I believe there is also StatusBarIOS and a StatusBar for Android.
88
votes
11
answers
127k
views
How to find height of status bar in Android through React Native?
How can I find the height of the status bar on Android through React Native?
If I check the React.Dimensions height the value seems to include the status bar height too but I'm trying to find the ...
87
votes
16
answers
61k
views
How to change the status bar background color and text color on iOS 13?
With the arrival of iOS 13 statusBar's view is no longer accessible trough:
value(forKey: "statusBar") as? UIView
Due to:
Terminating app due to uncaught exception
'...
86
votes
10
answers
50k
views
how to hide status bar when splash screen appears in iphone?
Is there a way to hide the status bar when showing splash screen in iPhone
and then show again in application?
74
votes
7
answers
80k
views
Hide Status Bar In iOS 8 app
I have tried
[[UIApplication sharedApplication] setStatusBarHidden:YES];
This does nothing.
And I have looked in my Info.plist file for "View controller-based status bar appearance" but it's not ...
70
votes
2
answers
131k
views
What is the height of Navigation Bar in iOS 7?
I 've just created a simple iOS 7 app using the default Master Details template.
In the MasterViewController.m, viewDidAppear method, I logged for
self.navigationController.navigationBar.frame.size....
66
votes
16
answers
102k
views
Change Status Bar Background Color in Swift 3
In XCode 7.3.x ill changed the background Color for my StatusBar with:
func setStatusBarBackgroundColor(color: UIColor) {
guard let statusBar = UIApplication.sharedApplication().valueForKey("...
66
votes
12
answers
47k
views
iOS 7 UISearchDisplayController search bar overlaps status bar while searching
I'm updating my app for iOS 7, and I'm in the process of adjusting all my views to account for the new transparent status bar (my app will still use opaque navigation bars).
It was relatively easy to ...
64
votes
12
answers
129k
views
Android: show/hide status bar/power bar
I am trying to create a button where I can hide or show the status bar on my tablet.
I've put in the onCreate
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);
getWindow()....
62
votes
7
answers
64k
views
Get iPhone Status Bar Height
I need to resize some elements in relation to the height of the iPhone's Status Bar. I know that the status bar is usually 20 points high but this isn't the case when it's in tethering mode. It gets ...
61
votes
15
answers
118k
views
How to hide a status bar in iOS?
I can hide a status bar in my app:
- (void)viewDidLoad{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
[super viewDidLoad];
}
When I chose my launch image and start it first ...
60
votes
9
answers
40k
views
Scroll to top of UITableView by tapping status bar
I know there's tons of code out there to scroll a tableview to the top, but I want to do this when the top status bar is tapped, just like in Apple's native apps. Is this possible?
58
votes
10
answers
107k
views
Android Material: Status bar color won't change
I'm developing an simple app to test the material design. I'm using com.android.support:appcompat-v7:21.0.0 and my activity looks like:
public class MyActivity extends ActionBarActivity {
...
}
...
57
votes
5
answers
91k
views
How can I create a bar in the bottom of a Java app, like a status bar?
I am in the process of creating a Java app and would like to have a bar
on the bottom of the app, in which I display a text bar and a status (progress) bar.
Only I can't seem to find the control in ...
53
votes
3
answers
57k
views
How can I change vim status line color?
I'm tring to change vim's status line color by editing my .vimrc .
By using the command au, I tried to change the color of the status line when entering or leaving insert mode; by using this ...
51
votes
14
answers
73k
views
Is there a way to change the Android status bar color with React Native?
I just got started with React Native for Android, and I'm trying to figure out if there's a way to change the status bar color for Android...
Like this?
48
votes
12
answers
40k
views
how do I properly change my status bar style in swift 2/ iOS 9?
I'm attempting to change my status bar's style to .Light but the previous code I implemented in swift 1.2 seems not to work anymore.. here's the code:
override func viewDidLoad() {
super....
45
votes
14
answers
45k
views
Status Bar showing black text, only on iPhone 6 iOS 8 simulator
I'm trying to convert my iOS 7 app to iOS 8 in Xcode 6 GM, and when i run it on the iPhone 5s or lower simulators with iOS 8 everything is fine, but on the iPhone 6 and 6 Plus simulators, the Status ...
44
votes
5
answers
59k
views
IOS7 Status bar hide/show on select controllers
I would like to show and hide the Status bar on some controllers. Can this be done or is it more of an overall app setting.
I have seen many posts/questions about the plist update:
View controller-...
44
votes
9
answers
32k
views
UIApplication.sharedApplication().setStatusBarStyle() deprecated in iOS 9
I have been using
UIApplication.sharedApplication().setStatusBarStyle()
In my appDelegate and it has worked fine, but since iOS 9, this method is deprecated and I can't find an alternative.
I want ...
44
votes
10
answers
62k
views
How to change Status Bar and App Bar color in Flutter?
I'm trying to change the color of the system status bar to black.
The configuration seems to be overridden by the AppBar class. I can achieve what I want by assigning the theme: to ThemeData.dark() ...
43
votes
5
answers
21k
views
setStatusBarHidden(_:withAnimation:) deprecated in iOS 9
I see that in iOS 9 setStatusBarHidden(_:withAnimation:) is now deprecated and the documentation says to use [UIViewController prefersStatusBarHidden] instead but what is the alternative in iOS 9 if I ...
41
votes
11
answers
39k
views
Status Bar Color not showing - 5.0 Lollipop Android Studio: (AppCompat-v7:r21)
I'm using the AppCompat-v7:21.0.0 support library for Android 5.0 Lollipop in Android Studio. My problem is that the Status Bar Color that can be changed by setting colorPrimaryDark in the values/...
40
votes
10
answers
68k
views
How to make StatusBar transparent?
Does anyone know a way to make Android Status Bar transparent with React Native?
NOT TRANSLUCENT, Transparent.
I am using react-navigation too.
37
votes
12
answers
32k
views
How to hide the status bar programmatically in iOS 7?
In ios7, how can I hide the statusbar programmatically? I am using XCode 4.6.1 (ios6.1) and I want to implement this in XCode itself.
37
votes
3
answers
5k
views
How does Apple update the Airport menu while it is open? (How to change NSMenu when it is already open)
I've got a statusbar item that pops open an NSMenu, and I have a delegate set and it's hooked up correctly (-(void)menuNeedsUpdate:(NSMenu *)menu works fine). That said, that method is setup to be ...
36
votes
3
answers
18k
views
How to close the status bar/notification panel after notification button click
I've browsed through Stackoverflow and have seen that this question has been asked, but I didn't find any solution.
I have a custom notification with 2 buttons. I want the status bar panel to close ...
36
votes
4
answers
16k
views
Check whether status bar is hidden or visible
I want to check condition for statusbar. How can i check condition if status bar is visible or not .
please anyone guide me to do this..
Thank you all
36
votes
3
answers
26k
views
Android 4.4 translucent Status and Navigation bars style on Android 5.0
On Android 4.4 KitKat you can set the Status and Navigation bars transparent with the android:windowTranslucentStatus and android:windowTranslucentNavigation theme elements, and then below the bars ...
36
votes
5
answers
15k
views
Moving status bar in iOS 7
The problem I'm facing is this:
I want to implement an iOS 7 app with nice design and left/right menu, which appears after the main view animate itself to the right/left. I'm doing this with [UIView ...
35
votes
7
answers
42k
views
Using windowTranslucentStatus with CollapsingToolbarLayout
I'm trying to get a similar effect to what is seen on google play.
I've got the below layout to show a transparent toolbar with an image behind it. When the user scrolls there is a parallax effect on ...
34
votes
10
answers
74k
views
Xamarin.Forms - Change StatusBar Color
I search but I can't find if it's possible to change the StatusBar color for each platform, from my portable code? (for Android, iOS & WinPhone 8.1)
public App()
{
// Change the StatusBar ...
34
votes
5
answers
49k
views
IOS 4.3 hide status bar permanently
I'm trying to hide the status bar in iOS 4.3 now that setStatusBarHidden:animated: is deprecated:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; //deprecated
The only option ...