deepthi
deepthi

Reputation: 8487

how to give background colour to textview in android?

How to give background colour to textview in Android?

Upvotes: 1

Views: 685

Answers (1)

Tawani
Tawani

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

Related Questions