Example #1
0
  public void runExitAnimation(ObjectAnimator backgroundAnimator) {

    mGifView.setVisibility(View.GONE);
    mPhotoView.setVisibility(View.VISIBLE);
    //        setBitmapToPhotoView();
    //        AnimationRect rect = getArguments().getParcelable("rect");

    AnimationRect.runExitAnimation(mPhotoView, mRect, backgroundAnimator);
  }
Example #2
0
 private void setBitmapToPhotoView() {
   Bitmap bitmap = BitmapCache.getInstance().getBitmap(mPath);
   if (bitmap == null) {
     bitmap =
         BitmapUtil.getSuitableBitmap(
             mPath, mScreenWidth, 0, BitmapUtil.DEFAULT_CONFIG, ImageView.ScaleType.FIT_XY);
     if (bitmap != null) {
       BitmapCache.getInstance().putBitmap(mPath, bitmap);
     }
   }
   mPhotoView.setImageBitmap(bitmap);
 }
Example #3
0
  private void runEnterAnimation() {

    mPhotoView.setVisibility(View.VISIBLE);
    mGifView.setVisibility(View.GONE);
    AnimationRect.runEnterAnimation(mPhotoView, mRect, mGifView);
  }