FAQ Database Discussion Community


incorrect status bar translucent displays on sony on lollipop

android,styles,statusbar,material-design,material
I have my styles.xml in values-v21. When I run my app on different Sony devices I see statusbar translucent like in android 4.4, but not 5.x. Anyone know the solution? code: <style name="BATheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:colorPrimary">@color/colorPrimary</item> <item name="android:windowTranslucentStatus">true</item> <item name="android:windowDrawsSystemBarBackgrounds">true</item> <item name="android:windowActionBar">false</item> <item...

When using ActionMode, the status bar turns black on Lollipop

android,statusbar,android-actionmode
I have a status bar with the following in the theme set on it: <!-- Base Theme for all "Material"-esque styles. We use NoActionBar so we can use the Toolbar at runtime. --> <style name="Material" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowDrawsSystemBarBackgrounds">true</item> <item name="android:windowTranslucentStatus">true</item> ... </style> I also have a DrawerLayout for most of...

Android set cycle process bar color

android,process,colors,statusbar,cycle
How could I change color of cycle process bar? In Android 5, the default color is green but I would like to change it. i am setting the background but it's not the right way since the whole space surrounding the progressbar will be colored. progressBar.setBackgroundResource(drawable); I also tried progressBar.setProgressDrawable(drawable);...

Android: status bar not theme on transitiong to new activity

android,android-activity,android-5.0-lollipop,statusbar
I have create a simple app with 2 activities. Main (launcher) activity is themed properly where colorPrimaryDark is applied to status bar. But when I transition to new activity, everything seems normal except status bar. It somehow colored white. Any idea why this could be happening? Running this on OnePlus...

Qt show constantly updating percentage in status bar

c++,qt,statusbar,progress
I have a program which load a file, does some calculations on the data, saves the data in memory and prints out to a text file. I want to show the percentage of the processing progress in the status bar, I am using the following code: percent=file.pos()*10000/file.size(); if((percent!=progress)&&(percent%5==1)){ progress=percent/100; qDebug()...

StatusBarColor doesn't change

android,themes,statusbar
I have imported this library https://github.com/neokree/MaterialNavigationDrawer for my NavigationDrawer. I used a suggested theme: <style name="AppTheme" parent="MaterialNavigationDrawerTheme.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">#8bc34a</item> <item name="colorPrimaryDark">#558b2f</item> <item name="colorAccent">#FFFFFF</item> <item name="singleAccount">true</item> </style> When I create a new ActionBarActivity the...

Status bar style issue

ios,statusbar
I need a Light content status bar for my iOS 8 app but it will show up as Dark. This thing persists and I can't get it work. What I have tried so far: Setting the Status bar style in the Info.plist Setting the style through code with UIApplication Trying...

Rooted Android Nexus 7 Lollipop disable SystemUI (system + navigation bar)

android,root,statusbar,navigationbar
I use the following code to disable the navigation bar and the status bar on my 4.4 nexus device try { proc = Runtime.getRuntime().exec(new String[] { "su", "-c", "service call activity 42 s16 com.android.systemui" }); } catch (Exception e) { Log.w("Main","Failed to kill task bar (1)."); e.printStackTrace(); } try {...

Translucent Status Bar on Kitkat, Tinted Status Bar on Lollipop

android,android-5.0-lollipop,statusbar,android-4.4-kitkat,material-design
I've searched for a solution, but haven't found one yet. I'm currently in the process of creating an Android app and my team wants to keep the experience of our app the same across the recent Android versions. We're using the Support v7 library, so most of the Material Design...

Access SysCmd function not working as expected for some action values

vba,ms-access,access-vba,ms-access-2010,statusbar
I've read the relevant historical material and this is not the same issue others have had. Adding DoEvents has no effect. First Problem RetVal = SysCmd(4, "Here's an Update!") clears the status bar text and meter, instead of updating the text. I have tested this in a sub and in...

Set Statusbar color to same as Nav Bar

ios,statusbar,color-picker
I want the Status Bar of my app to have the exact same color as my Navigation Bar. The way I found to change the color of the Status Bar was just by creating a view in the size of the Status Bar and change the background color. However even...

Status bar sized incorrectly with a contained UINavigationController

ios,uiviewcontroller,uinavigationcontroller,statusbar
I make a UINavigationController a child of another view controller through containment. Everything works fine, except for a strange issue that occurs when launching the app with the in-call status bar turned ON and then switching it back OFF after the app UI is on the screen. There appears a...

Android disable status bar interaction

android,statusbar
Is there a way, on android to keep the status bar while disabling all interaction you can do with it, like pulling it down? I want to keep the information this bar gives, but I don't want users to interact with it.

Calling setStatusBarColor ANDROID

java,android,statusbar,buttonclick
How can I call setStatusBarColor on a buttonclick? I have the event listener code but I'm unsure how to call this method. I'm trying to change the status bar color on button click. Here's my code: public static void setStatusBarColor(Activity activity, int statusBarColor) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { //...

Qt QStatusBar wider separator

c++,qt,user-interface,statusbar
I am using qt to develop an embedded gui application. I am using 2 QStatusBars to make a menu-like buttons one can see on an osciloscope for example: My problem is I dont know a proper way of separating the buttons from eachother with a certain width. In the picture...

Putting a view behind the status bar

ios,statusbar
I'm trying to create a statusBar Background. However it seem to place it wrong i've set a View in the top of the viewController and applied following contraints: -16 trailing -16 leading top space 0 height 24 However this is the result Why is there a white space at the...

IOS 7 get the wrong status bar height

ios,swift,statusbar
I try that the ios 7 will get the wrong height of status bar when the device rotated in swift. I have tested IPad Air (ios 7.0) and IPhone 6 (ios 8.2). It there any solution that can get the correct height of status bar? Problem Coding(which it get self.view.bounds.size.width):...

Update positionForBar for toolbar

ios,objective-c,iphone,statusbar,uitoolbar
In my app I use a toolbar on the top because it lays out bar button items better for what I need, and I set the toolbars delegate to the view controller and tell it to be top attached. I also have a setting that will hide the status bar,...

How to fix table view's search bar overlapping with status bar

ios,swift,uitableview,statusbar
I have a UITableViewController inside a navigation controller, with a search bar. This is how I add the search bar in viewDidLoad: let resultsController = SearchTableViewController() resultsController.people = people searchController = UISearchController(searchResultsController: resultsController) let searchBar = searchController.searchBar searchBar.placeholder = "Search a person" searchBar.sizeToFit() tableView.tableHeaderView = searchBar searchController.searchResultsUpdater = resultsController This...

Ionic bar-header padding-top when status bar is hidden

ios,cordova,ionic-framework,ionic,statusbar
I have a problem using the bar-header component of the ionic-framework. I always have a padding-top of a few pixels (see screenshot). I'm using the cordova plugin org.apache.cordova.statusbar to hide the status bar like this: if(window.StatusBar) { StatusBar.hide(); StatusBar.overlaysWebView(false); } Any help will be highly appreciated. ...

Status Bar hide/show affects view size

ios,objective-c,statusbar
I want to hide/show status bar when user taps a button. Here is how i do it: // Hide [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; // Show [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade]; This brakes UI layout, because view is moved up. I selected all Extend Edges options, but it didn't help. I discovered...

Status bar style from background image color percent iOS

ios,iphone,statusbar
I'm interesting, what is algorithm to get percent of background image color. If background image is black apple set status bar as white, and if background image is white it changes to black. If you have some example how to do it in application, please help me. I'll upload samples...

Status Bar turning completely black when using clipsToBounds = YES in iOS8. How do I change this?

cocoa-touch,ios8,uinavigationbar,statusbar
I'm setting my NavigationBar's translucent property to NO via the UINavigationBar appearance proxy in my AppDelegate. Then, to get rid of the 1 pixel-height separator between UINavigationBar and my view's below it, in my ViewController, I'm setting self.navigationcontroller.navigationbar.clipsToBounds = YES;. This is to remove the separator and achieve an effect...

Status bar notification on incoming SMS in Android?

android,notifications,sms,statusbar,auto
I am a beginner in Android programming. I am trying to implement a notification for incoming SMS in android device. However, I am able to create a toast for the same but unable to implement a status bar notification. Can nyone help me ? For now I have coded this...

Use StatusBar for Mouse Hover on Button

python,wxpython,statusbar
In my code, I've created StatusBar self.CreateStatusBar(). I can use this statusbar in MenuItem. Like Below: How can I use this statusbar in Button. Like, when I will enter my mouse over button, I will use this statusBar to give information about that button....

Status bar style for one view controller

ios,objective-c,statusbar
I have set my status bar style to light for my project and it work like charm, but i need to change the style to black for one viewController I'm using this : In my viewDidLoad method, I call: [self setNeedsStatusBarAppearanceUpdate] and set : - (UIStatusBarStyle) preferredStatusBarStyle { return UIStatusBarStyleBlackTranslucent;...

how to pass tmux varible to external script for the status bar

shell,environment-variables,zsh,statusbar,tmux
I am using the default <#{pane_current_path}> to display the current working directory for the current pane used. However the result is a lengthy full directory path taking lot of space in the status bar. What I wanted is to use a shell script or ruby script to cut it short...

Odoo8 - how can I sort status bar and set default as new?

default,statusbar,odoo,odoo-8
I have created a new module in Odoo for helpdesk and I have 2 problems that I can't seem to fix or find information on so need some help. I created a status bar (code): state = fields.Selection({('new','New'), ('open','In Progress'), ('closed','Closed')}, "Status") _defaults = { 'state': 'new' } <header> <field...