How would one fetch the accent color set in styles, like below, programmatically?
@color/material_green_500<
Kotlin solution:
context.obtainStyledAttributes(TypedValue().data, intArrayOf(R.attr.colorAccent)).let { Log.d("AppLog", "color:${it.getColor(0, 0).toHexString()}") it.recycle() }