I've got Android's SwipeRefreshLayout working and am trying to customize the colors across all the pull to refreshes throughout the app. In order to follow the DRY principle, I've tried moving the desired colors to array.xml as follows:
android.content.res.Resources$NotFoundException: Resource ID #0x7f060001
Turns out I was missing two key pieces.
There were two things I was missing.
1) I needed to indicate that I was getting an
IntArray from my array.xml file. This is done through
The answer was deleted, but thanks to whoever suggested this before.
2) The key part that was wrong is that I had to use
setColorSchemeColors instead of
setColorSchemeResources. I guess at some point in the build process the references I had in Array were converted to explicit color values.
Hopefully this can help someone else!