I'm building an app using Java in Android Studio. I'm at the stage of writing an if-statement:
"If the background color of the button is white, turn the background color of the button to black."
Does anyone know the code to check if the background color button is white?
"if(button == white){}"
I only know the part on how to turn the background color button to black.
btnChangeColor.setBackgroundColor(getResources().getColor(R.color.black)
Thanks