getColorExtended

fun TypedArray.getColorExtended(@StyleableRes index: Int, @ColorInt defaultColor: Int = Color.TRANSPARENT): Int

Retrieves the color at the given index.