Reputation: 135
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.
Upvotes: 0
Views: 1623
Reputation: 9234
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.
Upvotes: 5