Getting Resources from SherlockFragment
I am trying to get a color from colors.xml, using something along the lines of
Although there is a R.color.bgcolor_view in my colors.xml file, the R.color part only shows colors that are available in the built-in android settings. So I'm assuming that getResources() is not getting the resources from my project.
So, my question is, how do I obtain resources from within a SherlockFragment?
Look at your imports, you probably imported android.R, so remove this import and double check that you import your own R from your own project.