title: Android onClick only works once
body: <p>So I'm realy confused
  I am having a View(R.layout.main) which includes a custom view (canvas)</p>
  
  <p>this View contains a button which is overlayed over the canvas
  but when I click the button the OnClicklistener fires the event but after that button is doing nothing when clicked </p>
  
  <p>Activity :</p>
  
  <pre><code>public class RunActivity extends Activity implements OnTouchListener, OnClickListener {
  
      static int width;
      static int height;
  
      static boolean reset=false;
  
      //draw d;
      View d;
  
      Button jump_button;
  
      //jump
      float last_touchpos=0;
      static boolean jump=false;
  
      private static Context mContext;
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
         //d = new draw(this);
          d = getLayoutInflater().inflate(R.layout.main, null);
          d.setOnTouchListener(this);
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                                  WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
          mContext = this;
  
          //get screen size
          WindowManager wm = (WindowManager) this.getContext().getSystemService(Context.WINDOW_SERVICE);
          Display display = wm.getDefaultDisplay();
  
          width = display.getWidth();  // deprecated
          height = display.getHeight();  // deprecated
  
          setContentView(d);
  
          jump_button = (Button) findViewById(R.id.jump);
          jump_button.setOnClickListener(this);
      }
      public static Context getContext(){
          return mContext;
      }
  
      @Override
      public boolean onTouch(View v, MotionEvent event) {
          Log.d("touch","touched");
  
          if (draw.end == true)
          {
              reset=true;
          }
          else
          {
              if(last_touchpos != 0)
              {
                  if(last_touchpos &lt; event.getY())
                  {
                      jump = true;
                      last_touchpos = 0;
                  }
              }
              else
              {
                  last_touchpos = event.getY();
              }
          }
  
          return false;
      }
      @Override
      public void onClick(View arg0) {
          jump = true;
      }
  }
  </code></pre>
  
  <p>Layout :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;run.alexander.fuchs.draw
          android:id="@+id/canvasview"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;Button
          android:id="@+id/jump"
          android:layout_width="100dp"
          android:layout_height="50dp"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:text="Jump" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>