statusbar

Blocking status bar in top down swiping

扶醉桌前 提交于 2019-12-14 01:38:55
问题 I've a full screen application covering the entire screen, top status bar included. Since a top / down swipe is enabled to show some options to the user, it happens that swiping from top to down, the status bar is showing (as when you want to see notifications and swipe top down). Is there a way to avoid this ? 回答1: Use type TYPE_SYSTEM_ERROR for WindowManager.LayoutParams, to create hide impossible fullscreen view. Swipes for show status bar and navigation will be blocked. @Override

React Native IOS Status Bar background

雨燕双飞 提交于 2019-12-13 12:04:56
问题 Since Applying the backgroundColor props to StatusBar component doesn't get applied On IOS. I need to set the background colour of SafeAreaView to get the effect i want, it works fine but on iPhone X it will have that same colour at the bottom of the screen. How can I solve this issue? 回答1: React-Native does not support background color change of StatusBar on iOS platform but on Android platform, it's ok (https://facebook.github.io/react-native/docs/statusbar#backgroundcolor). I wrote a work

Hiding status bar not working Swift 3, Xcode 8.0

☆樱花仙子☆ 提交于 2019-12-13 08:46:04
问题 Set Target/General/Deployment info to Hide status bar. Set None for Status Bar in VCs in storyboards. Added the following code to all VCs. override var prefersStatusBarHidden: Bool { return true } Briefly hides status bar but immediately reappears. 回答1: Only the prefersStatusBarHidden of the root-level view controller matters — here, the split view controller. The split view controller wants a status bar; it gets a status bar. That is all that matters. You could try subclassing

xamarin forms wp81 status bar background color

你。 提交于 2019-12-13 07:22:34
问题 I am working on a xamarin.forms app, in my windows phone 8.1 app the status bar text and background color both come white. I tried all styles but nothing works. Below is my code <x:Class="Sthotraani.WinPhone.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Sthotraani.WinPhone" RequestedTheme="Light"> <Application.Resources> <Style TargetType="CommandBar"> <Setter Property="Background" Value="

When I click on notification in status bar, application is not launching

北慕城南 提交于 2019-12-13 04:22:31
问题 I try to develop an application which use GCM library, but when I click on notification in status bar, application is not launching... Here is my source code in my GCMIntentService class: private static void generateNotification(Context context, String message) { int icon = R.drawable.ic_launcher; long when = System.currentTimeMillis(); NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); Notification notification = new

Status bar icons look wierd on some android devices

时光毁灭记忆、已成空白 提交于 2019-12-13 03:12:09
问题 I'm currently developing an app for the android device which running in the background and pushing notifications sometimes. When notification is pushed an icon pops in the status bar. The problem is that in some devices it look too big and clipped but on others it's looks fine. For example when I'm testing the app on my personal device, Samsung Galaxy S3 android 4.2.2 and on a virtual device running android 2.2 it looks just fine. But when i tested the app on LG E400f - L Style android 2.3.6

Opening a window for status bar OS X 10.10 application

拈花ヽ惹草 提交于 2019-12-13 02:39:35
问题 I'm developing a status bar OS X application with Swift 1.2 and storyboards. My application doesn't have an initial controller because I don't want any windows to be displayed when the app is being launched. But, I need to open a preferences window if the app hasn't been configured. How do I do that properly? Now I'm doing that with NSPopover , but that's an ugly solution and doesn't provide a good UX. Is there a way to open a window, a view controller, if an application doesn't have an entry

Android- status bar notification with progress bar

懵懂的女人 提交于 2019-12-13 02:09:40
问题 I currently have a status bar notification that goes off when an mp3 is downloaded from a url. It launches fine (and the file does download fine), however, the progress bar doesn't progress. It simply stays still. I'm not sure where to put the code so it notify's the progress of the download. Any ideas? Thanks. Here is part of my code: public class DownloadFile extends AsyncTask<String, Integer, String>{ @Override protected String doInBackground(String... url) { try { URL url2 = new URL

How to customize the top status bar in an Android app?

跟風遠走 提交于 2019-12-12 17:37:57
问题 Specifically I want to change the text and background colors. Is it possible to change the colors of the 'animated progress wheel' too? Can I use a theme to do this? Can anyone point me to an example theme I can look at? 回答1: I believe you can use a custom view for the app's title bar. See the answers to this question: Custom title with image 回答2: If by "top status bar" you mean where the battery meter and signal meter and notifications go, you cannot change it from an app. You can set a

Change status / notification bar color on api below 21 android?

青春壹個敷衍的年華 提交于 2019-12-12 17:14:17
问题 I have seen in some apps the status bar color could be changed and matched to as what is being done in api level 21. I searched and found this solution Source <style name="Theme.MyTheme" parent="Theme.AppCompat.Light"> <!-- Set AppCompat’s color theming attrs --> <item name="colorPrimary">@color/my_awesome_red</item> <item name="colorPrimaryDark">@color/my_awesome_darker_red</item> <!-- Other attributes --> </style> But it is not working This is my style code <style name="ToolbarTheme" parent