My Android application is using the Holo Light theme. In my layout I want to make sure I use the same color as the rest of the theme, like this:
No resource found that matches the given name (at 'textColor' with value '@color/hint_foreground_light').
Resource is not public. (at 'textColor' with value '@android:color/hint_foreground_light').
No resource found that matches the given name (at 'textColor' with value '?textColorHint').
The color value you referenced is indeed private and is not meant to be accessed. However, you can access it using:
The IDE will show an error but since, its xml, it'll compile and will also work flawlessly. This method is not recommended as you never know when will those value change or become inaccessible.
It is recommended that you simply copy the required resource in your project and reference it from there.