The question is very old. But still I found that this answer will help someone who is looking for a way to set the color as a whole.
If you look at the android documentation, the constant value for white is -1, and black is -16777216. (that is) a range of int integer color values (from -1 to -16777216). Therefore, you can simply add an integer value to -16777216.
For example, if you want to set the color to white, the decimal representation of which is 16777215 (0xffffff), then 16777215 - 16777216 will give you -1 color constant for black in android.
source share