diff options
Diffstat (limited to 'platform/android/src/com/artifex/mupdfdemo/SafeAnimatorInflater.java')
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/SafeAnimatorInflater.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/SafeAnimatorInflater.java b/platform/android/src/com/artifex/mupdfdemo/SafeAnimatorInflater.java deleted file mode 100644 index 7f715bb4..00000000 --- a/platform/android/src/com/artifex/mupdfdemo/SafeAnimatorInflater.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.artifex.mupdfdemo; - -import android.animation.Animator; -import android.animation.AnimatorInflater; -import android.animation.AnimatorSet; -import android.app.Activity; -import android.view.View; - -public class SafeAnimatorInflater -{ - private View mView; - - public SafeAnimatorInflater(Activity activity, int animation, View view) - { - AnimatorSet set = (AnimatorSet) AnimatorInflater.loadAnimator(activity, R.animator.info); - mView = view; - set.setTarget(view); - set.addListener(new Animator.AnimatorListener() { - public void onAnimationStart(Animator animation) { - mView.setVisibility(View.VISIBLE); - } - - public void onAnimationRepeat(Animator animation) { - } - - public void onAnimationEnd(Animator animation) { - mView.setVisibility(View.INVISIBLE); - } - - public void onAnimationCancel(Animator animation) { - } - }); - set.start(); - } -} |