@Override public void onFinishInflate() { super.onFinishInflate(); View view = inflate(getContext(), R.layout.cover_anim_view, (ViewGroup) this); Arpan_ßløødy_CoverImages = new ImageView[2]; Arpan_ßløødy_CoverImages[0] = (ImageView) view.findViewById(R.id.image0); Arpan_ßløødy_CoverImages[1] = (ImageView) view.findViewById(R.id.image1); }
@Override public void animate(View view) { f = pickScale(); f2 = pickScale(); f3 = pickTranslation(view.getWidth(), f); f4 = pickTranslation(view.getHeight(), f); f5 = pickTranslation(view.getWidth(), f2); f6 = pickTranslation(view.getHeight(), f2); start(view, Image_Animation_Duration, f, f2, f3, f4, f5, f6); }
@Override private void start(View view, long l, float f, float f2, float f3, float f4, float f5, float f6) { view.setScaleX(f); view.setScaleY(f); view.setTranslationX(f3); view.setTranslationY(f4); ViewPropertyAnimator viewPropertyAnimator = view.animate().translationX(f5).translationY(f6).scaleX(f2).scaleY(f2).setDuration(l); viewPropertyAnimator.start(); }