开发者

how to give background colour to textview in android?

开发者 https://www.devze.com 2022-12-12 18:48 出处:网络
How to give background colour to textview in An开发者_如何学Pythondroid?textView.setBackgroundResource(resourceId) //from resource

How to give background colour to textview in An开发者_如何学Pythondroid?


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);
0

精彩评论

暂无评论...
验证码 换一张
取 消