In my research, I found two ways to support vector drawing on preinstalled devices. You can try this.
You can support all vector wrapping devices with AppCompatImageView
<android.support.v7.widget.AppCompatImageView app:srcCompat="" // your drawable declaration android:layout_width="wrap_content" android:layout_height="wrap_content"/>
android.support.v7.appcompat: srcCompat
Sets a valid value as the contents of this ImageView. Allows you to use the vector you can use when working on older versions of the platform.
Requires library support 23.4.0 or later
Source: https://developer.android.com/reference/android/support/v7/widget/AppCompatImageView.html#attr_android.support.v7.appcompat:srcCompat
Another way is to configure the vector setting in Gradle. Add the code below to Gradle.
android { defaultConfig { vectorDrawables.useSupportLibrary = true } }
Using srcCompat in ImageView
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" app:srcCompat="@drawable/ic_add" />
Source: https://android-developers.googleblog.com/2016/02/android-support-library-232.html
Hope this helps you :)
source share