Resource Extensions

Get String
fun Context.resString(@StringRes stringRes: Int) = ContextCompat.getString(this, stringRes)
Get Color
fun Context.resColor(@ColorRes colorRes: Int) = ContextCompat.getColor(this, colorRes)
Get Drawable
fun Context.resDrawable(@DrawableRes drawableRes: Int) = ContextCompat.getDrawable(this, drawableRes)
Get Font
fun Context.resFont(@FontRes font: Int) = ResourcesCompat.getFont(this, font)