getDrawableCompat

fun Context.getDrawableCompat(@DrawableRes id: Int): Drawable?

Get a Drawable from the resources based on their ID using AppCompatResources.getDrawable()