I have white icons that I want to use on the toolbar, but they are not tinted to my theme (based on AppCompat.Light ). No matter what color icons I put, they keep that color and don't turn dark gray (like overflow icons and SearchView).
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:contentInsetStart="0dp">
Here is my topic:
<style name="Theme.*myapp*" parent="Theme.AppCompat.Light"> <item name="colorPrimary">@color/accent</item> <item name="colorPrimaryDark">@color/accent_dark</item> <item name="colorAccent">@color/accent</item> <item name="windowActionBar">false</item> <item name="android:dialogTheme">@style/*myapp*.Dialog</item> <item name="android:textColorPrimary">#DE000000</item> <item name="android:textColorSecondary">#8A000000</item> </style>
Is there something I need to do to get the toolbar to tint MenuItems?
source share