Esempio n. 1
0
 private void init() {
   mAnimation = new FlipAnimator();
   mAnimation.setAnimationListener(this);
   mAnimation.setInterpolator(fDefaultInterpolator);
   mAnimation.setDuration(DURATION);
   setOnClickListener(this);
 }
 private void flipCardImage() {
   FlipAnimator animator = new FlipAnimator(cardImage, backCardImage);
   if (cardImage.getVisibility() == View.GONE) {
     animator.reverse();
   }
   cardImage.startAnimation(animator);
 }
Esempio n. 3
0
 @Override
 public void onClick(View v) {
   mAnimation.setVisibilitySwapped();
   startAnimation(mAnimation);
   if (mListener != null) {
     mListener.onClick(this);
   }
 }