title: RecyclerView OnClickListener only applying logic to final entry and nothing else
body: <p>I have a <code>RecyclerView</code> with a custom adapter, which assigns an <code>OnClickListener</code> in the <code>onBindViewHolder</code>. I have also implemented a <code>Listener</code> so that I can handle the data in the corresponding <code>Fragment</code>.</p>
  
  <p>Each <code>CardView</code> has one <code>Checkbox</code> and four subsequent <code>RadioButtons</code>. My logic for the <code>OnClickListener</code> is as follows:</p>
  
  <pre><code>public View.OnClickListener recordData(final ViewHolder holder) {
      View.OnClickListener radioOnClickListener = new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              if (listener != null) {
                  int id = view.getId();
                  listener.onClick(holder.getAdapterPosition(), id);
              }
              if (view.getId() == R.id.checkbox) {
                  Toast.makeText(view.getContext(), "CHECKBOX CLICKED", Toast.LENGTH_SHORT).show();
                  radioButton1.setClickable(false);
                  radioButton1.setChecked(false);
              }
          }
      };
      return radioOnClickListener;
  }
  </code></pre>
  
  <p>This code has zero impact on any of the entries in the <code>RecyclerView</code> apart from the very last one, which works as I would like:</p>
  
  <p>If the <code>CheckBox</code> is clicked, the <code>RadioButtons</code> should be disabled. </p>
  
  <p>Anyone have any suggestions as to why this is happening?</p>