Android Selector Drawable with VectorDrawables srcCompat

后端 未结 5 1107
轻奢々
轻奢々 2020-12-04 08:50

I\'m facing a problem with the new backward compatibility with VectorDrawables. In the Support Library 23.2 was a new feature for backward compatibility with Android VectorD

5条回答
  •  一整个雨季
    2020-12-04 09:19

    Working fine with below changes.

    static {
     AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
    }
    

    Added in Application class.
    app build.gradle inside defaultConfig

    vectorDrawables.useSupportLibrary = true
    

提交回复
热议问题