title: Radio Button in one radio group in 2 horizontal line
body: <p><img src="https://i.stack.imgur.com/pHzOw.png" alt="enter image description here"></p>
  
  <p>i try to set 4 radio button in one Radio group in 2 lines, but problem is that when i take linear layout with horizontal orientation then radio group functionality not work . All Radio buttons select . At a time only one button should be select.  </p>
  
  <p></p>
  
  <pre><code>            &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
  
                  &lt;RadioButton
                      android:id="@+id/r1"
  
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:text="@string/lbl1" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/r2"
  
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:text="@string/lbl2" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
  
                  &lt;RadioButton
                      android:id="@+id/r3"
  
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:text="@string/lbl3" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/r4"
  
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:text="@string/lbl4" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/RadioGroup&gt;
  </code></pre>