title: How to deselect selected RadioButton
body: <p>trying to deselect RadioButton when selected. I was suggested to use </p>
  
  <pre><code>RadioGroup radioGroup = (RadioGroup)findViewById(R.id.Radio_Group);
      radioGroup.clearCheck();
  </code></pre>
  
  <p>but when I use it in my code it blocks all RadioButtons so they can't be selected.</p>
  
  <pre><code>public void OnRadioButtonClick(View view)
  {
  
      boolean checked = ((RadioButton) view).isChecked();
  
  
      switch (view.getId()) {
          case radioButton1: 
  
  
              Toast.makeText(MainActivity.this, "..." + String.valueOf(checked),
                      Toast.LENGTH_SHORT).show();
              break;
          case R.id.radioButton2: 
  
              Toast.makeText(MainActivity.this, "..." + String.valueOf(checked),
                      Toast.LENGTH_SHORT).show();
              break;
  
          case R.id.radioButton3: 
  
              Toast.makeText(MainActivity.this, "...." + String.valueOf(checked),
                      Toast.LENGTH_SHORT).show();
              break;
          }
      }
  </code></pre>
  
  <p>Please use simple language in your explanations :) I'm new in programming.
  Thanks.</p>