I am trying to create extension, and i found this line of code:
playButton.setImageResource(R.drawable.play);
so i need to get play
from drawable res and set i to my assets
but i found play
as xml file
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="32dp"
android:width="32dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#FFF" android:pathData="M8,5.14V19.14L19,12.14L8,5.14Z" />
</vector>
so i need to know how to convert this xml code to image or Drawable to use it
to set it in playButton
playButton.setImageDrawable(playDrawable);
sorry my language is weak