@Override
 public void onCardClick(int position) {
   Card card = cards.get(position);
   card.toggle();
   notifyItemChanged(position);
 }
 @Override
 public int getItemViewType(int position) {
   Card card = cards.get(position);
   return card.isExpanded();
 }