Change colour of Hamburger Icon for Android

I have a MasterDetail page that that has a dark background for the Bar Background. I want the Hamburger icon to be white but I cant find the setting to change the colour. iOS seems to do it automatically but not Android.

I have tried

this.BarTextColor = Color.White; this.BarBackgroundColor = Color.FromHex ("00385E"); this.BackgroundColor = Color.White;

But nothing is working. Where am I going wrong?

Answers

  • VictorHGarciaVictorHGarcia USUniversity ✭✭

    Actually, I do have the same question. In fact I wanted the change the FontFamily of the Hamburger icon and no luck.

    Suggestions?

  • MarlonRibeiroMarlonRibeiro USMember ✭✭✭

    Add these lines in your base style:

               <style name="MyTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
                    <item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
                </style>
                <style name="DrawerArrowStyle" parent="@style/Widget.AppCompat.DrawerArrowToggle">
                    <item name="spinBars">true</item>
                    <item name="color">@color/green</item>
                </style>
    

    I've been struggling to do the same on iOS. If you guys ever implemented it, please help me!

  • minkeyminkey INMember

    how to implement custom hamburger icon in xamarin.forms. it is white by default . or how can I use my own color hamburger icon?

Sign In or Register to comment.