I am using the new appompap toolbar for Android. I need to set the same color for hamburger icons and back arrows. Using drawerArrowStyle allows me to change the hamburger icon, but not the arrow. The problem is only with Lollipop devices, anything, before Lellopop.


Here is the code:
Toolbar:
<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" android:background="@color/my_primary" local:theme="@style/My.Toolbar" local:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
Style.xml:
<style name="Theme.Base" parent="Theme.AppCompat.Light"> <item name="windowActionBar">false</item> <item name="android:windowNoTitle">true</item> <item name="colorPrimary">@color/my_primary</item> <item name="colorPrimaryDark">@color/black</item> </style> <style name="My.Theme" parent="Theme.Base"> <item name="drawerArrowStyle">@style/DrawerArrowStyle</item> </style> <style name="My.Toolbar" parent="Theme.AppCompat.NoActionBar"> <item name="android:textColorPrimary">@color/my_actionbartext</item> <item name="actionMenuTextColor">@color/my_actionbartext</item> <item name="android:textColorSecondary">@color/my_actionbartext</item> </style> <style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle"> <item name="color">@color/my_actionbartext</item> </style>
I tried to use the solution from here , but it did not work. Does anyone have any ideas?
source share