public boolean hideCard(String tag){
  final Card card=mVisibleCards.get(tag);
  if (card != null) {
    mVisibleCards.remove(tag);
    mDismissibleCards.remove(tag);
    mHiddenCards.put(tag,card);
    mLayout.removeView(card.getView());
    return true;
  }
  return mHiddenCards.containsValue(tag);
}

public boolean hideCard ( String tag ) { final Card card = mVisibleCards . get ( tag ) ; if ( card != null ) { mVisibleCards . remove ( tag ) ; mDismissibleCards . remove ( tag ) ; mHiddenCards . put ( tag , card ) ; mLayout . removeView ( card . getView ( ) ) ; return true ; } return mHiddenCards . containsValue ( tag ) ; }
hides the card , returns false if the card could not be hidden .
