statusbar

Strange overlapping bug between navigation and status bars when rotating fullscreen videos in iPad

强颜欢笑 提交于 2019-12-21 19:59:03
问题 I'm implementing a video player inside my application and strange things happen when rotating the iPad when the video player is working in full screen. My test case is kind of easy: 1.- I set orientation to Vertical 2.- I start video playing (non full screen) 3.- I set full screen 4.- I rotate the iPad while in fullscreen and set it to horizontal 5.- I go back to "non full screen" 6.- Navigation and status bar become overlapped overlapped in a very silly way. Look: 7.- Then I rotate the iPad

Translucent Status Bars (iPhone/iPad/iPod Touch)

烂漫一生 提交于 2019-12-21 17:04:54
问题 I've been looking around and it seems like the answer is no, but the posts are dated so I was wondering if this has changed. Is it possible to set the status bar to translucent? I'm trying to do a fade-in/fade-out effect on a multitouch tap but the status bar keeps coming up as solid black. Thanks! -- edit -- The code I'm using for the event transition is below. I have set the statusbar to translucent in the -info.plist, but I noticed there's no Black Translucent setting in IB (which is

How to prevent iOS 5 from showing the status bar even though UIStatusBarHidden is YES?

房东的猫 提交于 2019-12-21 16:51:05
问题 Some users reported that iOS 5 sometimes shows the status bar. In my Info.plist the UIStatusBarHidden key is YES, and I never mess around with the status bar in code. What can I do to fix that? 回答1: the entry in the Info.plist should be enough to hide it, but you can try doing it programmatically with: [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; when your app starts up. 回答2: I think the above method is deprecated in iOS5, I would use this one instead: [

Android - status bar prevents full screen

对着背影说爱祢 提交于 2019-12-21 01:20:56
问题 My app correctly runs in full screen when it's started. However after minimizing and then returning to the app, the status bar pops up and pushes my views down a little. How can I keep the status bar from moving my views? Here is my layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:myapp="http://schemas.android.com/apk/res/com.example.draw" android:orientation="vertical" android:layout_width="fill_parent" android

Disappearing status bar at the top after MPMoviePlayerController is closed

蹲街弑〆低调 提交于 2019-12-20 12:38:48
问题 Having an interesting little problem with my iPhone app. I have a view with a table and each cell, when clicked, plays a video fullscreen then when you press done, the video stops and goes back to the table view. The only problem is, when you press done within the first 2 or 3 seconds of the video loading, when the view goes back to the table view, the bar at the top of the screen that tells the time and battery strength etc is no longer there, its just a white space. But if you press done

Android - incremental status bar notification icon

此生再无相见时 提交于 2019-12-20 12:37:12
问题 You know what I'm talking about: for example when you get multiple new emails the notification icon in the status bar is augmented with a little red circle that contains number of unread mails. Twitroid has the same icon. Any idea how it's done? I don't think (or so I hope) there are 10000 similar icons. Is this red circle generated and overlaid the notification icon? If so - any code snippets will be much appreciated. 回答1: This one is nice and easy, just change Notification.number to

How can I hide the status bar in iOS 7.1?

佐手、 提交于 2019-12-20 11:56:54
问题 In iOS 7.0, I hid the status bar in my apps by adding <key>UIStatusBarHidden</key> <true/> <key>UIViewControllerBasedStatusBarAppearance</key> <false/> to the info.plist. I just updated my testing iPad to iOS 7.1, and the status bar is now back in all of my apps. How can I hide it in both 7.0 and 7.1? Update: This is only happening in iPhone apps running on the iPad, I don't see this problem on the iPhone or in the simulator. 回答1: In the view controllers in which you want the status bar

iOS 8 - Rotation makes statusBar disappear even in portrait mode after toggling controls

一世执手 提交于 2019-12-20 10:29:30
问题 I'm having a lot of troubles with the new auto hiding of the status bar in iOS 8. In my app, I've got a view in which when the user taps once, the navigation bar and the status bar disappear. When in landscape, the status bar hides by itself and it's fine to me. I only need it in portrait mode. But the problem is that when the device is landscape and the bar are shown, when the user taps twice to toggle the bar (so showing), and turns the device in portrait mode, the status bar is still

NSPopover transiency when popover is in status bar

眉间皱痕 提交于 2019-12-20 08:44:33
问题 I'm making an app which lives in status bar. When status item is clicked, NSPopover pops up. It looks like this: Here's the problem: I want it to be "transient", that is if I click anywhere outside of the popover, it will close. And while NSPopoverBehaviorTransient works fine when popover is in a window, it doesn't work when it's in status bar. How can I implement such behavior myself? 回答1: It turned out to be easy: - (IBAction)openPopover:(id)sender { // (open popover) if

Android status bar tints from kitkat to lollipop

偶尔善良 提交于 2019-12-20 05:34:08
问题 I'm trying to implement the nice status bar for my app and have successfully achieved this on kitkat. This is the xml I'm using <?xml version="1.0" encoding="utf-8" ?> <resources> <style name="AppTheme" parent="AppTheme.Base"/> <style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="android:windowBackground">@color/colorPrimary</item> <item name=