<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10s10,-4.48 10,-10S17.52,2 12,2zM16.59,7.76L14,10.34V7a2,2 0 0,0 -2,-2h-3v2h3v2H9.66l3.88,3.88L12.25,15l-5.59,-5.59L7.34,8H4v2h2.34l1.41,1.41L9.75,10l5.59,5.59L16.34,16H20v-2h-2.34l-1.41,-1.41L14.25,13l-3.88,-3.88L11.66,9H16M12,4a8,8 0 0,1 8,8c0,1.61 -0.48,3.11 -1.31,4.37l-1.46,-1.46C18.36,14.25 19,13.19 19,12a7.97,7.97 0 0,0 -8,-8L12,4Z"/>
</vector>
ImageView imageView = findViewById(R.id.imageView);
imageView.setImageResource(R.drawable.ic_example);
groovy
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}