Reputation: 8487
How to give background colour to textview in Android?
Upvotes: 1
Views: 685
Reputation: 11198
textView.setBackgroundResource(resourceId) //from resource
textView.setBackgroundColor(int color) // e.g. Color.RED
for custom colors
int color = Color.rgb(int red, int green, int blue);
Upvotes: 3