How to Replace an image from assets in extension

recently i have' been looking for a way to use images from assets in the place of drawables
for example how can replace this R.drawable.ic_tv_white_24dp programmatically so it can use an image i couldn't do it because it require int

If you have all of the source code, it should be fine because in most cases APIs will take a Drawable in addition to the version that takes an int. If not, you'll likely need to wait until this PR gets merged: