title: RadioButton Not Unchecking
body: <p>I know this has been asked a lot but I'm still quite unable to find a workaround for this one. These radio buttons are not clearing when I select another radio button. I don't want them to return or display a value but rather set the value.</p>
  
  <p>All three radio buttons are inside the radio group with ID <code>radioGroup</code></p>
  
  <p>Please help. Thank you :)</p>
  
  <pre><code>public void onRadioButtonClicked(View view) {
      boolean checked = ((RadioButton) view).isChecked();
  
      switch(view.getId()) {
          case R.id.radioButton_plumber:
              if(checked) {
                  internalWorkerType = "Plumbers";
                  dbRef = db.getReference(Common.user_workers_table).child(internalWorkerType);
              }
              break;
          case R.id.radioButton_carpenter:
              if(checked) {
                  internalWorkerType = "Carpenters";
                  dbRef = db.getReference(Common.user_workers_table).child(internalWorkerType);
              }
              break;
          case R.id.radioButton_electrician:
              if(checked) {
                  internalWorkerType = "Electricians";
                  dbRef = db.getReference(Common.user_workers_table).child(internalWorkerType);
              }
              break;
      }
  </code></pre>
  
  <p><strong>XML Code</strong></p>
  
  <pre><code>&lt;RadioGroup
      android:id="@+id/radioGroup"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="8dp"
      android:orientation="horizontal"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.0"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/textview_generic1"&gt;
  
      &lt;android.support.constraint.ConstraintLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;RadioButton
              android:id="@+id/radioButton_plumber"
              android:layout_width="104dp"
              android:layout_height="wrap_content"
              android:layout_marginBottom="8dp"
              android:layout_marginTop="8dp"
              android:onClick="onRadioButtonClicked"
              android:text="Plumber"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintEnd_toStartOf="@+id/radioButton_carpenter"
              app:layout_constraintHorizontal_bias="0.5"
              app:layout_constraintHorizontal_chainStyle="spread_inside"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="parent" /&gt;
  
          &lt;RadioButton
              android:id="@+id/radioButton_carpenter"
              android:layout_width="104dp"
              android:layout_height="wrap_content"
              android:layout_marginTop="8dp"
              android:onClick="onRadioButtonClicked"
              android:text="Carpenter"
              app:layout_constraintEnd_toStartOf="@+id/radioButton_electrician"
              app:layout_constraintHorizontal_bias="0.5"
              app:layout_constraintStart_toEndOf="@+id/radioButton_plumber"
              app:layout_constraintTop_toTopOf="parent" /&gt;
  
          &lt;RadioButton
              android:id="@+id/radioButton_electrician"
              android:layout_width="104dp"
              android:layout_height="wrap_content"
              android:layout_marginBottom="8dp"
              android:layout_marginTop="8dp"
              android:onClick="onRadioButtonClicked"
              android:text="Electrician"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintHorizontal_bias="0.5"
              app:layout_constraintStart_toEndOf="@+id/radioButton_carpenter"
              app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;/android.support.constraint.ConstraintLayout&gt;
  
  &lt;/RadioGroup&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/hk2OO.png"></p>