如何在android中为textview提供背景色?
如何在Android中为textview提供背景色如何在android中为textview提供背景色?,android,Android,如何在Android中为textview提供背景色 textView.setBackgroundResource(resourceId) //from resource textView.setBackgroundColor(int color) // e.g. Color.RED 用于定制颜色 int color = Color.rgb(int red, int green, int blue);
textView.setBackgroundResource(resourceId) //from resource
textView.setBackgroundColor(int color) // e.g. Color.RED
用于定制颜色
int color = Color.rgb(int red, int green, int blue);