Skip to content Skip to sidebar Skip to footer

Crash During Inflating View With Vector Drawable Tint Color Selector

I want to use vector drawable with tint color selector

Solution 1:

If you would like use selector for view with VectorDrawables you need to add this:

static {
    AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}

to every Activity where you want to use VectorDrawables on devices with versions below Android 5.

Post a Comment for "Crash During Inflating View With Vector Drawable Tint Color Selector"