DurX.putOn(blackOverlay) .animate() .alpha(0f, 1f); blackOverlay.setOnClickListener(this);
.alpha(0f) .duration(closeDuration) .andAnimate(popupView) .scaleX(scaleX) .scaleY(scaleY) .alpha(0f) .translationX(translationX) .translationY(translationY) .duration(closeDuration) .andAnimate(blackOverlay) .alpha(0f) .duration(closeDuration) .end(clearListener) .alpha(0) .duration(closeDuration) .thenAnimate(popupViewContent) .alpha(0) .duration(closeDuration) .end(clearListener);
.scaleX(differenceScaleX, 1f) .scaleY(differenceScaleY, 1f) .translationX(differenceTranslationX, translationX) .translationY(differenceTranslationY, translationY) .duration(openDuration) .end(new Listeners.End() { @Override public void onEnd() { .pullOut() .startDelay(openDuration - 100) .alpha(0f, 1f);
public DurXAnimator animate() { return new DurXAnimator(this); }
public DurXAnimator scale(float from, float to) { durX.scale(from); return scale(to); }
public DurXAnimator alpha(float from, float to) { durX.alpha(from); return alpha(to); }
public DurXAnimator scaleY(float from, float to) { durX.scaleY(from); return scaleY(to); }
public DurXAnimator thenAnimate(View view) { DurX durX = new DurX(view); DurXAnimator durXAnimator = durX.animate(); durXAnimator.startDelay(animator.getStartDelay() + animator.getDuration()); return durXAnimator; }
public DurXAnimator scaleX(float from, float to) { durX.scaleX(from); return scaleX(to); }
public DurXAnimator andAnimate(View view) { DurX durX = new DurX(view); DurXAnimator durXAnimator = durX.animate(); durXAnimator.startDelay(animator.getStartDelay()); return durX.animate(); } }