getDrawableCompat

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

Since

3.0.1

See also

androidx.core.content.ContextCompat