SyntaxFix
Write A Post
Hire A Developer
Questions
OnClick is triggered when the user releases the button. But if you still want to use the TouchListener you need to add it in code. It's just:
myView.setOnTouchListener(new View.OnTouchListener() { // Implementation; });