To facilitate the retrieving of an attribute from a theme, I'd like to propose the following extension: ```Kotlin inline fun Resources.Theme.resolveAttribute( resId: Int, resolveRefs: Boolean = true ): TypedValue = TypedValue().apply { resolveAttribute(resId, this, resolveRefs) } ``` So this will lead to the following change: ```Kotlin // before val backgroundValue = TypedValue() context.theme.resolveAttribute(android.R.attr.selectableItemBackground, outValue, true) // after val backgroundValue = context.theme.resolveAttribute(android.R.attr.selectableItemBackground) ```
To facilitate the retrieving of an attribute from a theme, I'd like to propose the following extension:
So this will lead to the following change: