<Why my cardview shows wrong colour even if correc...
# stackoverflow
r
Why my cardview shows wrong colour even if correct name is choosen in android? I have two columns with all the images in first column and second column with names. The image and names are stored in HashMap in the form of key-value pair. Where keys are images and value as their correct names. But, there is a catch , the names are shuffled so user can click on correct name. So, what I am trying to achieve is , when I click on image cardview, it's background colour should turn to green [it does change] and then when i click correct name for that image that correct name...