Hello everybody! I am doing a question and answer application and I am puzzled by something that seems somewhat simple.
When answering an answer I want the button pressed to keep the color red for a few seconds and then return to its original color (if the question is incorrect). on the other hand, I want the button pressed to keep the green color for a few seconds and then return to its original color (if the answer is correct).
I've been trying this but it doesn't work
It just stays white ... and what I want is this:
Any way to do it? or any suggestion to do this?