Using VectorDrawableCompat
Using VectorDrawableCompat
To use VectorDrawableCompat, you need to make two modifications to your project. First, set android.defaultConfig.vectorDrawables.useSupportLibrary = true
in your build.gradle
file, and second, use app:srcCompat
instead of android:src
to refer to vector drawables.
Issue id: VectorDrawableCompat
https://developer.android.com/guide/topics/graphics/vector-drawable-resources
https://medium.com/androiddevelopers/using-vector-assets-in-android-apps-4318fd662eb9
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023