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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -