android - I want to disable onTouch Listener -
i playing gif animation ontouch event. want disable ontouch listener when animation playing. don't want animation replayed until , unless 1 loop of animation completed. in short want disable ontouch event time till animation completes loop. after 1 loop played want touch event enabled again. please help.
try can use this::
anim.setanimationlistener(new animationlistener() { @override public void onanimationstart(animation animation) { // todo auto-generated method stub } @override public void onanimationrepeat(animation animation) { // todo auto-generated method stub } @override public void onanimationend(animation animation) { // todo auto-generated method stub } })
use onanimationstart listener disable touch. , onanimationend enable touch. hope helps!!
Comments
Post a Comment