Code example for ScaleAnimation

Methods: setDuration, setFillAfter, setInterpolator

0
    { 
      if (!((CGAnswerButton)paramView.getTag()).isVisible().booleanValue())
        return true; 
      if (paramMotionEvent.getAction() == 0)
      { 
        ScaleAnimation localScaleAnimation1 = new ScaleAnimation(1.0F, 1.4F, 1.0F, 1.4F, 1, 0.5F, 1, 0.5F);
        localScaleAnimation1.setDuration(50L);
        localScaleAnimation1.setFillAfter(true);
        localScaleAnimation1.setInterpolator(new LinearInterpolator());
        paramView.startAnimation(localScaleAnimation1);
      } 
//      while (true) 
//      { 
//        return true; 
//        if ((paramMotionEvent.getAction() != 1) && (paramMotionEvent.getAction() != 3)) 
//          continue; 
//        ScaleAnimation localScaleAnimation2 = new ScaleAnimation(1.4F, 1.0F, 1.4F, 1.0F, 1, 0.5F, 1, 0.5F); 
//        localScaleAnimation2.setDuration(50L); 
//        localScaleAnimation2.setFillAfter(true); 
//        localScaleAnimation2.setInterpolator(new LinearInterpolator()); 
//        localScaleAnimation2.setAnimationListener(new MainGuessActivity.keyAnimListener(CGAnswerItemAdapter.this, paramView));