im using the Android Library CardsLib to display an expandable list, my implementation should only have one item expanded at time and if i try to expand other card the the previous expanded one should collapse and then expand the new one.
I have already implemented a custom CardHeader and also a custom ExpandCard and it works like charm but im not sure how to close the others without going throw all of the cards array and set them the setExpanded attribute to false. is there any easiest way to do it?