getThemeAttribute

fun Context.getThemeAttribute(@StyleRes theme: Int, @StyleableRes styleable: IntArray, @StyleableRes styleAttribute: Int): Int

Retrieve a theme attribute's style

Receiver

Context

Return

Int

Parameters

theme

The theme

styleable

The styleable defining the theme's attributes

styleAttribute

The attribute for which you want to retrieve the style