getAccentColor

open fun getAccentColor(@NonNull context: Context): Int

Returns a color integer associated as accent color from a theme based on a Context.

Return

The accent color value of current theme in the form 0xAARRGGBB.

Parameters

context

The context used to style the color attributes.