setColor

fun Drawable.setColor(context: Context, @ColorRes colorId: Int)

Tints this Drawable with a color resource.

This avoids resolving the color manually before calling Android's color filter API.