I want to change some button colors globally in my code. I cannot seem to fine a way to define a color variable and then assign a color value to that variable.
I tried
"I cannot seem to fine a way to define a color variable and then assign a color value to that variable."
Here is how you can define a color variable:
int selectedColor = Color.rgb(0, 0, 100);
and use it:
f1.setBackgroundColor(selectedColor);