Search code examples
androidandroid-6.0-marshmallowandroid-vectordrawable

VectorDrawable bad rendering in android 6


I have many vector icons and i tested them on different android versions but rendering of some of these vectors on android marshmallow is not correct, while on other android versions no problem and rendering is good.

gradle:

defaultConfig {
        minSdkVersion 15
        targetSdkVersion 24
        vectorDrawables.useSupportLibrary = true
    }

and on top of my activity

static {
    AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}

i'm using the latest appcompat version

compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:appcompat-v7:24.2.1'

Solution

  • Update to version 25.0.0 of the Support Library