Android SDK has an interface in TouchEvent. (android.view.View.OnTouchListener)
I don't know why the following line fails. (and Eclipse notices error at OnTouchListener)
public class TouchHandler extends OnTouchListener{
And it works if change to:
public interface TouchHandler extends OnTouchListener{
It means that I cannot create a class that extends OnTouchListener. Can somebody explain why?
thanks :)
Instead of
public class TouchHandler extends OnTouchListener{
use implements
public class TouchHandler implements OnTouchListener{
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With