themeAttrColor

fun Context.themeAttrColor(@AttrRes attributeColor: Int): Int

Get a color from the attribute theme

Return

the color, or Color.TRANSPARENT if failed to resolve

Parameters

attributeColor

the attribute color, ex R.attr.colorPrimary