Using
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#FFFF0000"
android:endColor="#80FF00FF"
android:angle="45"/>
<padding android:left="7dp"
android:top="7dp"
android:right="7dp"
android:bottom="7dp" />
<corners android:radius="8dp" />
</shape>
from http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape
Every time I set it as a background for any view it is always turns the background gray.
The xml is in res/drawable and I have tried both methods used in the guide.
Can someone shed some light on why it isnt working.
Don’t know how I fixed it but I copied my layouts, deleted them, pasted them back in then cleaned the project (I do this often) and it fixed the problem.