how to start page over status bar in Xamarin.Forms? - xamarin

In Xamarin.Forms, how do I make the status bar transparent, and start my page behind it?
I'm not using a nav bar, and I'm hiding the title bar. I have a header image, and instead of the status bar(top of the phone that shows carrier, battery %, time etc) being black, i'd like my page to be behind it.
Is this possible in xamarin.forms, and how would I go about it?
Thanks!

Try to put this in info.plist
<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
Best regards,
https://innovia.me

For iOS you can do
NavigationPage.SetHasNavigationBar(this,false);
but for Android it depends on version. Here is the link
Hiding the Status Bar

Related

How to change statusbar color

I'm creating an app using Xamarin.Forms Shell, but I can't change the statusbar... I managed to change the color of the activebar but the statusbar remains dark blue.(In an Android Device with Android 9.0 Pie)
I googled if there's a way to change the color of the status bar, but what I found didn't take effect... so I wonder if in Xamarin.Forms Shell there is a way to change it. otherwise, is there a way in Xamarin.Forms?(without using the shell).
P.S. On https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/shell/configuration
I see that the iphone has the colored top bar and the device with Android has the status of the black bar, so if one day I will have to use the app in an iphone, does it mean that I will not have this problem? (I assume this also depends on the version of the operating system)
I'd like to read your experience, in the meantime thank you.
Please Add
Window.SetStatusBarColor(Android.Graphics.Color.Argb(255, 0, 255, 0)); this line in your OnCreate() method of android platform.
I change the status bar to green. There is running screenshot.

Xamarin.Forms how to change the navigation back button to an image?

I am building an app in Visual studio with crossed platform in Xamarin.Forms.
I have been trying to change the back arrow button in the navigation UI to an image in stead of the arrow, but I haven't found any good examples.
Is there anyone here who can help me?
Back arrow button in navigation bar is default feature. I think it can't be changed. If you want to change it then you should use a custom navigation bar.

Sierra Notification Center widgets background colour

Notification Center in Sierra has a new, light background colour compared with Yosemite and El Cap. My widget, however, still shows the old, dark style, even when I rebuild with the new SDK.
The view has appearance set to "Inherited (Vibrant Dark)". Changing that to "Aqua" seems to have no effect.
Is it possible to change third party widgets to look the same as Apple's? I notice all the other third party widgets I look the same.
You need to set the value of NSExtensionPointVersion to 2.0 in your Today extension's Info.plist to get the new appearance:
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionPointVersion</key>
<string>2.0</string>
</dict>
</dict>
The last I checked this was not documented anywhere, but if you create a new Today extension using Xcode 8 it should add this for you, confirming it is the correct approach. (I actually figured it out by inspecting the contents of Apple's own Today extensions.)
One thing worth mentioning is that older versions of macOS will still have the dark appearance, so if your extension is backwards compatible you'll need to adjust your content to suit the background color. In your Today extension's main view controller you can check for the dark appearance like this:
NSString *appearance = self.parentViewController.view.effectiveAppearance.name;
BOOL legacyDarkBackground = ([appearance isEqualToString:NSAppearanceNameVibrantDark]);

Can i block appearing control center in ios7 on some views?

I need to disable control center on one key view in case i use "swipe up" gesture for navigation on that view controller
Add the following to your Info.plist:
<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
When you "swipe up" it avoid to reveal the control centre. The gestures work normally for your application and it shows only a grabber
Best workaround I've found for this is to present the view controller in full screen. (I'm not talking about the deprecated Full Screen property)
By doing so you force the notification \ control center to be triggered with two swipes instead of one. If the user swipes up or down he'll see a small arrow instead of the all notification\control center. Another swipe on that arrow will open the center view. There's no public way to disable it completely so this is your best bet.
You can't do this. Control Center is a apple implemented feature. This is the same thing as notification center, which you also cannot disable.
You can't do it. But you can warn users that they can disable it from the "Settings" (not that I would suggest you do this, unless you want to make your users mad)

How do I see my hyper link preview at the bottom of firefox?

I used to be able to see where a hyperlink was pointing to at the bottom of firefox. Ive got firefox 4 and there is no bar now annoyingly.
This is related to programming because I need to see wher hyperlinks go.
The status bar has been removed. You can get it back via an add-on.
Strange with me it shows the links when I hover over the links with the mouse. It just shows up at the bottom-left and just takes the size of the links, not the entire width of the screen like the status-bar used to do.
If you only need to see the hyperlinks then this should be enough if not install the extension mentioned in the other answer.
,
to get the bar back at the bottom you can do view > toolbars > add-on bar, but that doesn't give you a link preview and it seems not to be the same as the status bar anymore. So statusbar and add-on bar are two different things now.
To recover the old used and very useful status bar, first, install the Status4evar (S4E) add-on.
Next step you have to open the personalize window to be sure that at the bottom will be a "variable space" line ,
at its left side you drop/draw the "status text" and close that personalization.
now you can see the complete link by mouseover as known in old days .
good luck

Resources