How to change icon color in drawable layout on android

3

Hello, I need to change the icon color that triggers the DrawableLayout menu, but I am not finding the property or where I can customize this icon.

How do I change the color of this icon? Where do I put his color? Which element? What file name?

    
asked by anonymous 30.08.2018 / 19:51

1 answer

4

To change the color of the burger icon you should open the file style.xml

And then in this class, add the line responsible for the color:

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    /*linha responsável pela cor abaixo*/
        <item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
    /*linha responsável pela cor acima*/
</style>

<style name="DrawerArrowStyle" parent="@style/Widget.AppCompat.DrawerArrowToggle">
    <item name="spinBars">true</item>
    <item name="color">@android:color/black</item>
</style>

Then just change the color in line <item name="color">@android:color/black</item>

Responding to Woton Sampaio :

The scheme is the same, but to change the color of the 3 dots, you must add the following line:

<item name="android:textColorSecondary">@color/white</item>

Any questions with the implementation let us know.

Hugs

    
30.08.2018 / 21:21