android - How to import simple ongesture listener and override its methods properly? -


i have error: ii

it says "i dont know find onfling, onscroll etc superclass of simple on gesture listener, though override it

my code:

package nis.tryout_erjan;  import android.view.gesturedetector.simpleongesturelistener; import android.view.motionevent;  public class answerview  implements simpleongesturelistener {      @override     public boolean onsingletapup(motionevent e) {         return true ;     }      @override     public void onlongpress(motionevent e) {         super.onlongpress(e);     }      @override     public boolean onscroll(motionevent e1, motionevent e2, float distancex, float distancey) {     return super.onscroll(e1, e2, distancex, distancey);     }      @override     public boolean onfling(motionevent e1, motionevent e2, float velocityx, float velocityy) {         return super.onfling(e1, e2, velocityx, velocityy);     }      @override     public void onshowpress(motionevent e) {         super.onshowpress(e);     }      @override     public boolean ondown(motionevent e) {         return super.ondown(e);     }      @override     public boolean ondoubletap(motionevent e) {         return super.ondoubletap(e);     }      @override     public boolean ondoubletapevent(motionevent e) {         return super.ondoubletapevent(e);     }      @override     public boolean onsingletapconfirmed(motionevent e) {         return super.onsingletapconfirmed(e);     } } 

simpleongesturelistener not interface regular class. cannot implement it, class has extend it.

public class answerview extends simpleongesturelistener 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -