You could define MaterialNavigationPage.StatusBarColor
insdie ContenPage .
<ContentPage .... xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material" material:MaterialNavigationPage.StatusBarColor="#1B3147" ></ ContentPage>
https://github.com/Baseflow/XF-Material-Library#app-bar-customization .
Answers
You could define
MaterialNavigationPage.StatusBarColor
insdie ContenPage .https://github.com/Baseflow/XF-Material-Library#app-bar-customization .
I just struggled with this myself and finally got it working.
In my Android project I have:
This uses the
CurrentActivity
plugin, which makes it easy to get the current activity in Android from anywhere.Then in your XF project add something like this:
Finally, also in your XF project add something like this to your main App class, the one that extends
Xamarin.Forms.Application
:In my case I'm getting the color from my Resources, but obviously you could just hard code it too.