Resolving Android theme colours programmatically

The Android styling and theming system can be an enigmatic beast at the best of times. In someĀ of the SDKs at Zendesk, we need to resolve theme attribute colours at runtime, and today I learned that there’s a big difference depending on whether you specify a colour as a reference or as a literal value.