I am using Appcompat 7 in my project for Toolbar with navigation toggle. Everything works except the requirement to change the color of DrawerArrowToggle icon dynamically when each activity or fragment changes.
My styles.xml
file code is as follows:
<style name="NavigationTheme" parent="Theme.AppCompat.Light">
<item name="colorPrimary">#FFFFF</item>
<item name="colorPrimaryDark">#F2F2F2</item>
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
</style>
<style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="spinBars">false</item>
<item name="color">#FFFFFF</item>
</style>
In the above styles file I have used DrawerArrowToggle color as White, but my requirement is to change into some other color in runtime. I have not posted any code since I am completely stuck and no where I could find even a single piece of code for my requirement.