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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -