title: Android: disable onClickListener within its own onClick?
body: <p>In Android (targeting APIs 14-16) I have an <code>onClickListener</code> set for a <code>TextView</code> as below:</p>
  
  <pre><code>theView.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
          // actions
      }
  });
  </code></pre>
  
  <p>One of the consequences of clicking should be to disable further clicks. I've tried including <code>v.setOnClickListener(null);</code> among the "actions", but it doesn't have the required effect. What should I be doing for this?</p>
  
  <hr>
  
  <p><strong>Edit</strong>: @Raghav Sood suggests disabling the TextView. In this case, I have a large grid of TextViews of which only one was clicked; I want to disable all of them. I suppose I must disable all with a loop; is that correct? Or is there a single command that can disable the whole layout in which they reside?</p>