Android: How can I call a method after a view touched -
i want call method after button touched , call method after touch finished, possible?
try code may you
yourbutton.setontouchlistener(new ontouchlistener() { @override public boolean ontouch(view v, motionevent event) { if(event.getaction() == motionevent.action_down){ // want return true; } return false; if(event.getaction() == motionevent.action_up){ // want return true; } return false; } });
Comments
Post a Comment