LongClick Listener disabled when using clicklistener with animation in android

I have about 30 ImageButtons in total. 15 ImageButtons are for recording some sounds and the other 15 ImageButtons to play each of them.

I record the sounds with Touch Listeners. I play the sounds with a Click Listener. I delete the sounds with a longclick listener. So when I add some animation, without some animation listeners, as you can see below a simple zoomin zoomout, when the sound plays, afterwards I cannot use LongClick because it is not working. The duration of animation is about 1500ms any solutions?

public void onClick(View v) { switch (v.getId()) { case R.id.imageButtonPlay1: PlayStopConditions(v, 1); buttonsPlay[0].startAnimation(ZoomIN); imgsbuttons[0].startAnimation(ZoomIN); imgsbuttons[0].startAnimation(ZoomOUT); buttonsPlay[0].startAnimation(ZoomOUT); break; } } public boolean onLongClick(View v) { switch (v.getId()) { case R.id.imageButtonPlay1: DeleteConditions(0,buttonsPlay[0]); break; } }

Category:android Views:0 Time:2018-12-05

Related post

Copyright (C) dskims.com, All Rights Reserved.

processed in 2.991 (s). 12 q(s)