0
私はこのアニメーションを終了した後にshowdialogを配置しようとしています。ボタンをクリックすると、showdialogが開きますが、アニメーションの終了後にshowdialogを開きたいと思います。 私のアニメーションのコードを見て:Showdialog Android Studio
btngirar.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
angle = r.nextInt(10000) + 360;
RotateAnimation rotate = new RotateAnimation(0, angle,
RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f);
rotate.setFillAfter(true);
rotate.setDuration(4000);
rotate.setInterpolator(new AccelerateDecelerateInterpolator());
ivgarrafa.startAnimation(rotate); //ivgarrafa is the image that rotates
}
}
は