how to change colors for MasterDetail action bar

Hi guys, still failing when trying to change background color and text color for action bar in the MasterDetail concept (through PCL). I tried a lot of things (including this https://www.syntaxismyui.com/xamarin-forms-android-actionbar-style-nugget/) and still only "ugly" grey background and black text. So, is it possible to change it? I can imagine that it would have been 2-line change, but makes me crazy unable to resolve :-) Thanks for any hints!

Best Answer

Answers

  • czNairikczNairik CZMember
    edited October 2018

    great! thanks! I've put it here and it's working:

    <?xml version="1.0" encoding="UTF-8"?>
    <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" 
                      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
                      xmlns:local="clr-namespace:TestSpace"
                      x:Class="MySpace.MainPage">
      <MasterDetailPage.Master>
        <local:HamburgerPage x:Name="hamburgerPage" />
      </MasterDetailPage.Master>
        <MasterDetailPage.Detail>
            <NavigationPage BarBackgroundColor="#0E547C" BarTextColor="White">
                <x:Arguments>
            <local:HomePage />
                </x:Arguments>
            </NavigationPage>
        </MasterDetailPage.Detail>
    </MasterDetailPage>
    
Sign In or Register to comment.