I am new developer on android and also fresh developer.I’m trying to implement functionality for some buttons, but I’m not getting it.
I want to change the color of button on the first click to "Color1" to "Color2" and on the second click in the button to change to "Color2" to "Color3". On the third click I want to change to "Color3" and return to "Color1". I know how change the color button with one click ("Color1" to "Color2), but not the other steps.
Does anyone know how to do this?
Source: Android Questions