getAttribute

fun getAttribute(context: Context, resId: Int): Int

Gets the value of an attribute with id resId.

Author

Arnau Mora

Since

20211006

Parameters

context

The context to get the attribute from.

resId

The id of the attribute to get.