How would one fetch the accent color set in styles, like below, programmatically?
@color/material_green_500<
For those of you using Kotlin
fun Context.themeColor(@AttrRes attrRes: Int): Int { val typedValue = TypedValue() theme.resolveAttribute (attrRes, typedValue, true) return typedValue.data }