getColorFromAttribute

fun getColorFromAttribute(context: Context, @AttrRes attributeRes: Int): Int

Gets a color stored in attribute

Author

Arnau Mora

Since

20210321

Return

The loaded color

Parameters

context

The context to get from

attributeRes

The attribute to get