Search code examples
xamarinxamarin.formsxamarin.forms.shell.net-standard-2.1

How to change Android ActionBar color in Xamarin App.Shell


I'm developing an app using Xamarin with .netstandard 2.1 and can't find a way to change the action bar of the android app.

enter image description here

The blue bar isn't the color I want, and following all the docs and tutorials over internet, I found even a way to change the status bar (where the clock and battery and notifications are), but can't change this blue to Orange.

Can someone tell me what should I'm doing wrong, please?

Thanks


Solution

  • Set the attached property BackgroundColor="Red" either globally at <Shell> level:

    <Shell
           ...
           BackgroundColor="Red">
    

    Or at ContentPage level using:

    <ContentPage
           ...
           Shell.BackgroundColor="Red">
    

    note that this will affect navigation bar (the one you described) and also upper tabs (TabBar).