Skip to content Skip to sidebar Skip to footer

Xamarin Forms Android Appcompatactivity Toolbar Background Color Is Not Changing

In my Xamarin Forms Android Project I need to change the ToolBar Title color and background color I have tried with many workarounds suggested in Google but unfortunately I am unab

Solution 1:

In you app class (PCL), add these to change the back button's color:

NavigationPagenaviPage=newNavigationPage( newApp13.MainPage());
MainPage = naviPage;
naviPage.BarBackgroundColor = Color.FromHex("#cc66ff");

I have made a demo for you.

Update:

From here, like @MarlonRibeiro has said, you can use drawerArrowStyle to change the back button's color to white(I have updated my project on github):

<stylename="MainTheme.Base"parent="Theme.AppCompat.Light.NoActionBar"><itemname="drawerArrowStyle">@style/DrawerArrowStyle</item></style><stylename="DrawerArrowStyle"parent="@style/Widget.AppCompat.DrawerArrowToggle"><itemname="color">#FFFFFF</item></style>

Post a Comment for "Xamarin Forms Android Appcompatactivity Toolbar Background Color Is Not Changing"