I am trying to implement a onTouchListener so i can call it from a different class...
public OnTouchListener nextListener = new OnTouchListener() {
@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
//stuff
}
return true;
}
};
And it keeps throwing me this error. "Class anonymous class derived from onTouchListener must either be abstract or implement abstract method". I know it is something small because I had it working earlier.
Aucun commentaire:
Enregistrer un commentaire