[android-components](../index.md) / [mozilla.components.support.ktx.android.content.res](index.md) / [resolveAttribute](./resolve-attribute.md)

# resolveAttribute

`@AnyRes fun <ERROR CLASS>.resolveAttribute(@AttrRes attribute: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/content/res/Theme.kt#L19)

Resolves the resource ID corresponding to the given attribute.

``` kotlin
//Missing function name in @sample
```

