title: Uncheck checked radio button in RecyclerView
body: <p>I want to uncheck selected radio button on second click (it is a single selection radio button code)</p>
  
  <p>Below is my code:</p>
  
  <pre><code>int row_index = -1;
  
  holder.rbBookOfferText.setOnClickListener(view -&gt; {
          holder.rbBookOfferText.setChecked(true);
  
          row_index = Integer.parseInt(mDataset.get(position).getTaskId());
          notifyDataSetChanged();
  
      });
  
      if (row_index == Integer.parseInt(mDataset.get(position).getTaskId())) {
          holder.rbBookOfferText.setChecked(true);
      } else {
          holder.rbBookOfferText.setChecked(false);
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/C7FLS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C7FLS.png" alt="enter image description here"></a></p>