getColorResource

open fun getColorResource(index: Int, defaultValue: Int): Int

Access a given color attribute by Android styleable resource index. The default if the index is invalid is yellow for android tv, or white otherwise.

Parameters

index

The Android styleable resource index for the desired boolean resource.

defaultValue

The color to use by default.