android - ontouch on frame by frame animation -
how implement on touch on image view used frame frame animation... using follow final animationdrawable newtonanimation = (animationdrawable) animation.getbackground(); animationstart(newtonanimation); animation.setontouchlistener(l); public void animationstart(final animationdrawable newanimation){ thread timer=new thread(){ @override public void run(){ try{ sleep(40); }catch(exception e){} finally{ newton_lawsactivity.this.runonuithread(new runnable() { public void run(){ newanimation.start(); }}); } } }; timer.start(); } g...