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:
NavigationPage naviPage = new NavigationPage( new App13.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):
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
</style>
<style name="DrawerArrowStyle" parent="@style/Widget.AppCompat.DrawerArrowToggle">
<item name="color">#FFFFFF</item>
</style>
Post a Comment for "Xamarin Forms Android AppCompatActivity Toolbar Background Color Is Not Changing"