Android simple game. ImageButton not clicking. Bitmap
<p>I have created a custom ImageButton that will be used to change direction of objects in a simple game. The button is not responding when I click/touch it. 
I have tried setOnTouchListener and setOnClickListener but nothing happens.</p>

<p>CustomButton:</p>

<pre><code>public class CustomButton extends ImageButton {

private Bitmap bitmap;

public CustomButton(Context context, int resource) {
    super(context);

    setClickable(true);
    bitmap = BitmapFactory.decodeResource(context.getResources(), resource);
}

public Bitmap getBitmap() {
    return bitmap;
}
</code></pre>

<p>GameView:</p>

<pre><code>public class GameView extends SurfaceView implements Runnable { 

volatile boolean playing;
private Thread gameThread = null;
private CustomButton mLeftButton;
private Player player;
private Paint paint;
private Canvas canvas;
private Bitmap bitmap;
private SurfaceHolder surfaceHolder;
public GameView(Context context, int screenX, int screenY) {
    super(context);

    mLeftButton = new CustomButton(context, R.drawable.boom);
    mLeftButton.setImageBitmap(mLeftButton.getBitmap());

    mLeftButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Toast.makeText(getContext(),"It worked",Toast.LENGTH_LONG).show();
        }
    });

    player = new Player(context, screenX, screenY);
    surfaceHolder = getHolder();
    paint = new Paint();
}

@Override
public void run() {
    while (playing) {
        update();
        draw();
        control();
    }
}

private void update() {
    player.update();
}

private void draw() {
    if (surfaceHolder.getSurface().isValid()) {
        canvas = surfaceHolder.lockCanvas();
        canvas.drawColor(Color.BLACK);
        canvas.drawBitmap(player.getBitmap(), player.getX(), player.getY(), paint);
        canvas.drawBitmap(mLeftButton.getBitmap(), 20, 20, paint);
        surfaceHolder.unlockCanvasAndPost(canvas);
    }
  }
}
</code></pre>