public void runExitAnimation(ObjectAnimator backgroundAnimator) { mGifView.setVisibility(View.GONE); mPhotoView.setVisibility(View.VISIBLE); // setBitmapToPhotoView(); // AnimationRect rect = getArguments().getParcelable("rect"); AnimationRect.runExitAnimation(mPhotoView, mRect, backgroundAnimator); }
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); }
private void runEnterAnimation() { mPhotoView.setVisibility(View.VISIBLE); mGifView.setVisibility(View.GONE); AnimationRect.runEnterAnimation(mPhotoView, mRect, mGifView); }