} else {
// Show pressed-up animation for the single-tap.
mAlbumView.setPressedIndex(slotIndex);
- mAlbumView.setPressedUp();
- mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_PICK_PHOTO, slotIndex, 0),
- FadeTexture.DURATION);
prepareFadeOutTexture();
+ mAlbumView.setPressedIndex(-1);
+ pickPhoto(slotIndex);
}
}
private RawTexture mFadeOutTexture;
private Rect mOpenAnimationRect;
- public static final int ANIM_TIME_OPENING = 300;
+ public static final int ANIM_TIME_OPENING = 400;
// The item that is deleted (but it can still be undeleted before commiting)
private Path mDeletePath;
view.setAlpha(fadeAlpha);
}
mFadeOutTexture.draw(view, 0, 0);
- view.setAlpha(1f);
+ view.setAlpha(1f - fadeAlpha);
return;
}
}
case ANIM_KIND_CAPTURE:
progress = 1 - f; // linear
break;
+ case ANIM_KIND_OPENING:
case ANIM_KIND_SCALE:
progress = 1 - f * f; // quadratic
break;
- case ANIM_KIND_OPENING:
- progress = 1 - f * f * f; // x^3
- break;
case ANIM_KIND_SNAPBACK:
case ANIM_KIND_ZOOM:
case ANIM_KIND_SLIDE: