title: Android - OnClick on custom view doesn't fire
body: <p>I'm working on a Livewallpaper with a Thread Painting all Objects and Custom Objects extended from View. The Problem is that my custom view doesn't fire on click....</p>
  
  <p>Here are the Code Snippeds:</p>
  
  <p>in my WallpaperService Class the OnTouch ist given to my Painting Thread:</p>
  
  <pre><code>    @Override
      public void onTouchEvent(MotionEvent event) {
          super.onTouchEvent(event);
          painting.doTouchEvent(event);
      }
  </code></pre>
  
  <p>Then in the constructor of my PaintingThread I'm creating instances of my custom view:</p>
  
  <pre><code>public LiveWallpaperPainting(SurfaceHolder surfaceHolder, Context context) {
      for(int i = 0; i &lt; numberOfObj;i++ ){
          obj.add(new Obj(context,objBitmap, objBitmap2, mCanvasWidth, mCanvasHeight, 32, 32 , 20, 10));
      }
  </code></pre>
  
  <p>Then in the Constructor of my Obj:</p>
  
  <pre><code>    super(context);
      this.context = context;
      this.setEnabled(true);
      this.setFocusable(true);
      this.setFocusableInTouchMode(true);
      this.setClickable(true);
      this.setOnClickListener(this);
  </code></pre>
  
  <p>The Class implements OnClickListener.</p>
  
  <p>But when I'm logging the onClick  nothing happens....:</p>
  
  <pre><code>@Override
  public void onClick(View v) {
      Log.d(TAG, "clicked");
  }
  </code></pre>
  
  <p>I'm getting crazy because I tried so much, but nothing worked... :( Please help me.
  I think the OnClick is catched before my Obj can react?? But don't know why....</p>
  
  <p>I hope I gave you all details needed...</p>
  
  <p>Yumi</p>