I\'ve started working on an app. I build the menu yesterday but the onClick method doesn\'t work! I created a class that extends View and called her MainMenuObject - that cl
You can just call performClick() in onTouchEvent of your custom view.
Use this in you custom view:
@Override public boolean onTouchEvent(final MotionEvent event) { if(event.getAction() == MotionEvent.ACTION_UP){ return performClick(); } return true; }