Search code examples
androidandroid-actionbar

Change color on back button (on ActionBar)


How to change back button color in ActionBar? (From black to white color). It's screenshot with this button:

enter image description here

And how to change spinner arrow color on ActionBar?


Solution

  • The following works for me with ToolBar:

    <style name="MyTheme" parent="Theme.AppCompat">
       <item name="drawerArrowStyle">@style/MyDrawerArrowToggle</item>
    </style>
    
    <style name="MyDrawerArrowToggle" parent="Widget.AppCompat.DrawerArrowToggle">
      <item name="color">@color/your_color</item>
    </style>
    

    EDIT


    Option 2

    <style name="ToolbarThemeWhite" parent="@style/ThemeOverlay.AppCompat.ActionBar">
            <item name="colorControlNormal">@color/white</item>
            <item name="android:textColorPrimary">@color/white</item>
        </style>
    

    set this style to toolbar