I use flags in categories area grid view with card view and when i select 1 it select and when I click on 2nd it don't select at 1st time I need to press it 2nd time what to do?enter image description here
Asked
Active
Viewed 31 times
0
-
If you have a view like grid then why are you not using _RecyclerView_? – Piyush Aug 08 '19 at 09:42
-
not use recycleview – Dheeraj Gupta Aug 08 '19 at 09:45
-
The main reason behind this error is you are using one variable for all cardView i.e. `isClicked` which is true when your clicked 2nd time. Create isClicked variable for each cardView like isClicked1, isClicked2 etc. – Jignesh Mayani Aug 08 '19 at 10:17
-
thanks can try this – Dheeraj Gupta Aug 08 '19 at 10:42