I'm creating a project and need to change the menu icon, but I have not found a solution yet. How do I change the color of the menu icon in MasterPageDetalis xamarin.forms?
Asked
Active
Viewed 6,013 times
3
-
have a look on https://stackoverflow.com/a/46405023/1616738 – Pavan V Parekh Sep 29 '17 at 05:36
-
Encontrei uma maneira fácil de resolver essa situação, neste link:[enter link description here](https://stackoverflow.com/questions/31870132/how-to-change-color-of-hamburger-icon-in-material-design-navigation-drawer/31870783#31870783) – Marcos Silva Martins Oct 03 '17 at 04:37
2 Answers
6
Change in your base theme from style.xml
<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>
Please suggest me if i'm wrong

dharam
- 69
- 1
- 2
- 5
0
In the new version of Forms you would change the ActionBar color (and text color) like this:
var navigon = new NavigationPage(new WebViewPage());
navigon.BarBackgroundColor = Color.Teal;
navigon.BarTextColor = Color.White;
If you using MasterDetailPage you use override OnAppearing in your MasterDetailPage it should work.

Ziyad Godil
- 2,620
- 1
- 14
- 36
-
2changed the color of the bar and the text in it, but wanted to change the color of the menu icon. – Marcos Silva Martins Sep 29 '17 at 15:35
-
1navigon.BarTextColor is set color both icon and text for action bar if you want change only icon color use
- @android:color/black
in android project styles.xml for android – Ziyad Godil Oct 02 '17 at 07:04