@Override
 public void onScratchChanged(ScratchCard card, float rate) {
   if (rate > 0.7f) {
     mCard.removeCardInAnim(500);
     mCard.setEnabled(false);
   } else {
     mTvCard.setText("rect:" + mCard.getRecordRect().size() + " area:" + rate);
   }
 }
 @Override
 public boolean onXmlBtClick(View v) {
   if (v.getId() == R.id.bt_reset_card) {
     mCard.resetCard(true, false);
     return true;
   }
   return false;
 }
 public void onScratchRemoved() {
   mCard.resetCard(true, false);
 }
 @Override
 protected void initViewAdAction(View root, Bundle bundle) {
   mCard = (ScratchCard) root.findViewById(R.id.scratchcard);
   mTvCard = (TextView) root.findViewById(R.id.tv_card);
   mCard.setScratchListener(this);
 }