setBackgroundColor()
only takes ints. I don't really know what int equals to what color. Is there a simple way to convert a string like #2222FF
on runtime into an int
?
int color = Color.parseColor("#2222FF");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With