title: Android - Two onClick listeners and one button
body: <p>I have a custom TextView which is clickable. It defines its own onClick handler in order to change its appearance based on clicks. However if I then define a second onClick handler in my activity in order to do something based on the button being clicked, only one of the onClick functions is called.  onClick is a void function - is there any way to say I didn't process this click, please pass it on to other onClick handlers? </p>
  
  <p>To be more clear here is the code:</p>
  
  <p>Inside MyCheckButton which extends TextView I have:</p>
  
  <pre><code>    setOnClickListener( mClickListener );
  
      private OnClickListener mClickListener = new OnClickListener() {
          public void onClick(View v) {
              toggle();
          }
      };
  </code></pre>
  
  <p>However I include MyCheckButton into my Activity, and of course I need to do something when its clicked so I attach another OnClickListener to it:</p>
  
  <pre><code>MyCheckButton button= (MyCheckButtonButton) findViewById(R.id.cb);
  button.setOnClickListener(new OnClickListener(){
      @Override
      public void onClick(View v) {
          // do something in the app
      }
  
  });
  </code></pre>
  
  <p>By calling setOnClickListener twice it appears that I am replacing the original listener so toggle() which changes the appearance is never called.  How can I do something in my activity when this button is clicked if it is already using the onClick handler to change its appearance? I thought I would simply see both OnClickListeners getting called.</p>