1 package cz.cvut.fel.dce.qrscanner.mupdf;
3 import android.animation.Animator;
4 import android.animation.AnimatorInflater;
5 import android.animation.AnimatorSet;
6 import android.app.Activity;
7 import android.view.View;
9 import cz.cvut.fel.dce.qrscanner.R;
11 public class SafeAnimatorInflater
15 public SafeAnimatorInflater(Activity activity, int animation, View view)
17 AnimatorSet set = (AnimatorSet) AnimatorInflater.loadAnimator(activity, R.animator.info);
20 set.addListener(new Animator.AnimatorListener() {
21 public void onAnimationStart(Animator animation) {
22 mView.setVisibility(View.VISIBLE);
25 public void onAnimationRepeat(Animator animation) {
28 public void onAnimationEnd(Animator animation) {
29 mView.setVisibility(View.INVISIBLE);
32 public void onAnimationCancel(Animator animation) {