示例#1
0
 @Override
 public void onCardClick(int position) {
   Card card = cards.get(position);
   card.toggle();
   notifyItemChanged(position);
 }
示例#2
0
 @Override
 public int getItemViewType(int position) {
   Card card = cards.get(position);
   return card.isExpanded();
 }