GestureDetector doesn't work with my View
<p>I have been developing the application for drawing and I need to detect double tap by view:</p>

<pre><code>package com.nda.painter.library.views;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.Log;
import android.view.GestureDetector;
import android.view.GestureDetector.OnDoubleTapListener;
import android.view.GestureDetector.OnGestureListener;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnLongClickListener;
import android.view.View.OnTouchListener;

import com.nda.painter.library.Painter;
import com.nda.painter.library.listeners.DrawingListener;

public class PainterView extends View implements 
    DrawingListener,  OnTouchListener,
    OnGestureListener, OnDoubleTapListener {

    private GestureDetector detector;
    private Context context;
    private Painter painter;
    private Bitmap bitmap;
    private Paint bitmapPaint;
    private Path path;
    private Paint paint;

    private float x;
    private float y;

    public PainterView(Context context, Painter painter) {

        super(context);
        this.context=context;
        this.painter=painter;
        //setClickable(true);
        //setLongClickable(true);
        //setOnTouchListener(this);
        detector=new GestureDetector(context, this);
        detector.setIsLongpressEnabled(true);
        detector.setOnDoubleTapListener(this);

    }

    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
    }

    public void setPainter(Painter painter) {
        this.painter=painter;
    }

    @Override
    public boolean onDown(MotionEvent e) {
        // TODO Auto-generated method stub
        Log.e("event", "event");
        return false;
    }

    @Override
    public void onShowPress(MotionEvent e) {
        // TODO Auto-generated method stub

    }

    @Override
    public boolean onSingleTapUp(MotionEvent e) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
            float distanceY) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public void onLongPress(MotionEvent e) {
        // TODO Auto-generated method stub
        Log.e("event", "long");
        painter.drawString(x,y,"123");
    }

    @Override
    public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
            float velocityY) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean onSingleTapConfirmed(MotionEvent e) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean onDoubleTap(MotionEvent e) {
        // TODO Auto-generated method stub
        Log.e("event", "double");
        return true;
    }

    @Override
    public boolean onDoubleTapEvent(MotionEvent e) {
        // TODO Auto-generated method stub
        return false;
    }
}
</code></pre>

<p>Please, don't see at the other code, just at GestureDetector. It doesn't work! I haven't seen any notes in Log. Please, tell me why. </p>
