fun Context.resolveIntAttribute(@AttrRes resId: Int, resolveRefs: Boolean = true): Int
Resolves an attribute with specified resource id, returning its integer value if successful. Throws an exception if attribute is invalid.
resolveRefs - true to resolve references (default)
resolveRefs