public void onCreateContextMenu(ContextMenu menu) { super.onCreateContextMenu(menu); menu.setHeaderTitle("MyImage Menu"); menu.add(0, 100, 0, "이미지 회전"); menu.add(0, 101, 0, "크기 변경"); }
@Override public void ßløødy_Image() { if (Active_Image == -1) { Active_Image = 1; animate((View) Arpan_ßløødy_CoverImages[Active_Image]); return; } int n = Active_Image; Active_Image = (1 + Active_Image) % Arpan_ßløødy_CoverImages.length; ImageView imageView = Arpan_ßløødy_CoverImages[Active_Image]; imageView.setAlpha(0.0f); ImageView imageView2 = Arpan_ßløødy_CoverImages[n]; animate((View) imageView); AnimatorSet animatorSet = new AnimatorSet(); animatorSet.setDuration((long) Fade_In_Out_Animation_Duration); Animator[] animator = new Animator[] { ObjectAnimator.ofFloat((Object) imageView2, "alpha", new float[] {1.0f, 0.0f}), ObjectAnimator.ofFloat((Object) imageView, "alpha", new float[] {0.0f, 1.0f}) }; animatorSet.playTogether(animator); animatorSet.start(); }