I'm pretty sure calling setBackgroundColor(Color.BLUE) overrides the setBackgroundResource() call.
Try making a different drawable resource that is this
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:bottomLeftRadius="8dp"
android:bottomRightRadius="8dp"
android:topLeftRadius="8dp"
android:topRightRadius="8dp" />
<solid
android:color="#350000FF" />
</shape>
Then setting the background of the gridview to that. You may have to play with the color value to get exactly what you want.