I have created an AnimationSet and want a sound effect after the first animation. Is it possible to add it to the animation set in some way or if there is an ObjectAnimator property that changes sound.Please let me know how I can do that.
MediaPlayer mp = MediaPlayer.create(getApplicationContext(), R.raw.combo);
ObjectAnimator fade = ObjectAnimator.ofFloat(ImageButton,"alpha",0f,1f);
ObjectAnimator move = ObjectAnimator.ofFloat(myAnimation1,"translationX",20);
ObjectAnimator moveX = ObjectAnimator.ofFloat(myAnimation1,"translationY",20);
AnimatorSet as =new AnimatorSet();
as.playTogether(move,moveY,fade);//wanted to know if I could add the sound mp after moveY
as.start();