getColorCompat

fun Context.getColorCompat(@ColorRes id: Int): Int
fun Fragment.getColorCompat(@ColorRes id: Int): Int

Since

3.0.1

See also

androidx.core.content.ContextCompat