I can set my text color using heading.setTextColor(Color.RED); but I cant seem to find reference anywhere on how to set the background color of the Form/Screen.
Asked
Active
Viewed 3,133 times
0
-
Duplicate of http://stackoverflow.com/questions/4761686/how-to-set-background-color-of-activity-to-white-programmatically [1]: http://stackoverflow.com/questions/4761686/how-to-set-background-color-of-activity-to-white-programmatically – arsenal Sep 03 '11 at 23:21
1 Answers
1
Use setBackgroundColor
I got the info from http://developer.android.com/reference/android/view/View.html#setBackgroundColor

Reed
- 14,703
- 8
- 66
- 110
-
1View mlayout = findViewById(R.id.start_linear); mlayout.setBackgroundColor(Color.parseColor("#FF0000")); – Brad Wickwire Sep 06 '11 at 05:00