title: how to get ontouch event in bitmap inside canvas?
body: <p>i have a bitmap inside a canvas.the class implements ontouchlistener.i need to hide the image while touch on the image.</p>
  
  <pre><code>class Panel extends View implements View.OnTouchListener {
  Paint linepaint=new Paint();
  
    public Panel(Context context) {
      super(context);
    }
   @Override
   public void onDraw(Canvas canvas) {
      Bitmap imgtable = BitmapFactory.decodeResource(getResources(), R.drawable.table_01);
      canvas.drawBitmap(imgtable, centrex, centrey, null);
      public boolean onTouch(View v, MotionEvent event) {
      // TODO Auto-generated method stub
      return false;
   }
  
  }
  </code></pre>