MenuItem tinting on AppCompat Toolbar
Setting a ColorFilter (tint) on a MenuItem is simple. Here is an example: The above code is very helpful if you want to support different themes and you don't want to have extra copies just for the color or...
Technical answers from my Stack Overflow history, with source links and licenses.
Showing 5 of 5 answers tagged android-appcompat
Exported May 9, 2026
Setting a ColorFilter (tint) on a MenuItem is simple. Here is an example: The above code is very helpful if you want to support different themes and you don't want to have extra copies just for the color or...
The first screenshot in your question is not a public widget. The support SearchView ( android.support.v7.widget.SearchView ) mimics Android 5.0 Lollipop's SearchView ( android.widget.SearchView ). Your second...
Update your support library to 23 and your compileSdkVersion to 23 in build.gradle. Then sync your project with gradle files. Also, Google Play Services is now 7.8.0
Why is this happening? Drawables share a ConstantState when created from a resource and AppCompat uses setColorFilter to backport tinting. So, when you open a new Activity, TintManager sets a ColorFilter on the Drawable...
Every Activity needs to extend ActionBarActivity. AppCompat doesn't use the native Toolbar or ActionBar, even on Lollipop. For more info see:...