I have created a onTouchListener. Unfortunately onTouch() method throws me a warning:
onTouchListener
throws
com/calculator/activitys/Calculat
Here you go:
public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: //some code.... break; case MotionEvent.ACTION_UP: v.performClick(); break; default: break; } return true; }