fun Context.resolveIntAttributeSafe(@AttrResresId:Int, resolveRefs:Boolean= true): Int?
Safe variant of Context.resolveIntAttribute.
Resolves an attribute with specified resource id, returning its
integer value if successful, null otherwise.
Parameters
resolveRefs - true to resolve references (default)