library / org.akop.kotx.ext.app / android.content.Context / resolveIntAttribute

resolveIntAttribute

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.

Parameters

resolveRefs - true to resolve references (default)