I am trying to set the background color of a TableRow. I currently have this in my xml file:
android:background="@color/buttonBackground"
and I work great. But when it starts
row.setBackgroundColor(R.color.red);
the line disappears. Can someone explain why this is?
source
share