I'm trying to understand something about this method, setBackgroundColor(int) in android.
I keep seeing people say that to use it with hex values, you should do
0xFF000000 + 0x[6 digit hex value that you want]
But, and correct me if I'm wrong, isn't 0xFFFFFFFF, a legal input to the function, larger than the maximum size of an integer? Why am I allowed to put it in as input? Is it because of two's complement cutting the max size of integers in half?