statusbar

setStatusBarStyle:animated: deprecated

别说谁变了你拦得住时间么 提交于 2019-12-24 07:15:03
问题 I'm currently developing an app (in Swift 3) on Xcode 8 beta , for iOS 10 . What I want to achieve is to change status bar style within a view controller at run time, for changing the theme from daytime theme to night theme. I've found out that the method I used to use when I was developing another app in the past was deprecated, as shown here on the API reference. However, preferredStatusBarStyle won't work here since I would like to change it within a single view controller. Can anybody

Get the count of the latest statusbar notifications in Android

♀尐吖头ヾ 提交于 2019-12-24 06:40:45
问题 I have a Google TV and find the Home app can display the count of the latest statusbar notifications. Does anyone know how to implements this function? 回答1: You cannot get the count of notifications sent from other apps in Android. Only system apps can do that. You could keep track of the number of notifications that your app is sending but I don't think that is what you are looking for. 来源: https://stackoverflow.com/questions/10996849/get-the-count-of-the-latest-statusbar-notifications-in

Why do I see double status bars when starting my app?

妖精的绣舞 提交于 2019-12-24 03:14:32
问题 When starting my iPhone application, I'm seeing both the status bar from Default.png and the OS's built-in status bar, instead of just seeing the OS's status bar. What have I done wrong? 回答1: Resize your Default.png to exactly 320x480. If your Default.png is exactly 320x480, it will be displayed full screen layered below (in z-order) the status bar. (This means the user will see the real status bar, not the Default.png one.) But if your Default.png is some other size, the iPhone OS will scale

Close status bar when opened: Android

前提是你 提交于 2019-12-24 00:12:17
问题 I am trying to come up with some ways of disabling the status bar without hiding it completely. This is an introlude attempt at disabling status bars in 3rd party apps. For now, I want to disable it in my own app, and then eventually create a background service to see if I can do so in other apps. The app I am creating is an operating system for children, and I am trying to develop a closed system. Here is what I have tried. My initial idea was to monitor when status bar was accessed and then

swift ios trying to change color of status bar on certain VC's

♀尐吖头ヾ 提交于 2019-12-23 22:13:38
问题 In my app I have 4 ViewController and in two of them I am changing the status bar from white to black like this: override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.Default } override func viewWillDisappear(animated: Bool) { super.viewWillDisappear(animated) UIApplication.sharedApplication().statusBarStyle = .LightContent } The problem is if I switch between two ViewController that both have the code

iPad translucent status bar?

回眸只為那壹抹淺笑 提交于 2019-12-23 18:13:13
问题 Is there no way to make the status bar translucent for the iPad. I get this error when trying to do this: UIStatusBarStyleBlackTranslucent is not available on this device. 回答1: The iPad doesn't support the translucent status bar. On iPad devices, the UIStatusBarStyleDefault and UIStatusBarStyleBlackTranslucent styles default to the UIStatusBarStyleBlackOpaque appearance. It's probably Apple considers the screen is so big that giving 20px (2 ~ 3% of screen size) to the status bar doesn't

How can I check the status bar colour in Android?

爷,独闯天下 提交于 2019-12-23 16:27:18
问题 How can I check the status bar colour in Android? Why do I need to check this? I have created my status bar icons as per the design guidelines however on some devices (Samsung Galaxy S) the status bar is black and it is running Android 2.1. The recommendations for the status bar icons look great on Android 2.3 (Nexus S) and within the emulator (earlier Android 2.1) with the default light grey status bar. However the black icons that are recommended for pre-2.3 don't look clear on the Samsung

Android: Jumping effect of Status Bar

落花浮王杯 提交于 2019-12-23 10:10:06
问题 I have a problem with my app. I use the full screen option like so: public void setFullscreen() { requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } But, later during the game, when I show the AlertDialog for Help / Info, the status bar comes back for a fraction of a second and disappears again creating a flashing or jumping effect. Also, the Dialog itself is not centered as it should,

How can I show/hide the status bar on a pageViewController using tap gesture (iOS8 / Swift)

独自空忆成欢 提交于 2019-12-23 10:09:16
问题 Looking through all the solutions given to similar questions, I have been trying to get the statusBar to show/hide with a tap gesture. I have set View controller-based status bar appearance = NO in the plist. I have tried the following code in my DataViewController (page view controller) AND in the RootViewController : let app = UIApplication.sharedApplication() app.setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.Fade) and it doesn't work. This is embedded in a UITabBarController

Cannot put DrawerLayout under StatusBar

微笑、不失礼 提交于 2019-12-23 09:37:57
问题 I have an activity with a Navigation Drawer and using ScrimInsetsFrameLayout I was able to put the layout under the StatusBar and everything worked perfectly. Then I decided to replace the color for the Toolbar and StatusBar with a png background for all the activity layout. I run the app on the emulator (Nexus 5 with android 6.0) and the result was exactly what I wanted like you can see in Image #1 below, but when I tried on my device (Galaxy Note 3 with android 5.0) the layout inside