I could fix.
I found that AppCompat theme is using following resource for overflow button: abc_ic_menu_overflow_material.xml
Content of this resource is:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="?attr/colorControlNormal">
...
</vector>
Then, I connected the dots:
- First: It is using colorControlNormal
- Second: It is using vector
HOW TO FIX
According to Library V23.2.0 Release notes (LINK HERE), we have to update build.gradle to add support to Vector:
build.gradle
Add following lines to your build gradle
Gradle 2.0 (I did not tested):
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}
Gradle 1.5 (I'm using this.. it works):
android {
defaultConfig {
generatedDensities = []
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
Fixing your theme
This step may be ignored. Some base themes already set colorControlNormal
to white (such as AppCompat.Dark.ActionBar
).
However, in my case, all button colors remained black and I had to add the colorControlNormal
to my theme and override it with white color.
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="colorControlNormal">@color/white</item>
</styel>
I hope this can help you.
This was how I fixed my issue.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…