Trying to set a color which is defined in res/values/colors.xml to an object,
<?xml version="1.0" encoding="utf-8"?>
<resources>
<drawable name="listViewSelected">@android:color/holo_blue_light</drawable>
<drawable name="listViewPressed">@android:color/holo_green_light</drawable>
<drawable name="pagerTabStrip">#2B3333</drawable>
<!--<drawable name="pagerTabStrip">#353F3E</drawable>-->
<drawable name="tableHead">#FF444444</drawable>
</resources>
I can not figure out why it is not working,
I tried a lot of approaches (getResources(), Color.parseColor(), ...)
How do I set the color "tableHead" e.g. to a TextView?
tv.setBackgroundColor(????);