title: Placing Radiobuttons in next line (according to text size) in Android
body: <p>In Android:</p>
  
  <p>I have 4 radio buttons in a radio group and I want to place them horizontally. But if length of any <code>RadioButton</code>'s text increases, automatically other radio buttons shift to next line. Unfortunately, they get disappeared and go out of the screen.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;RadioGroup
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:layout_marginTop="40dp"
      android:orientation="horizontal"&gt;
  
      &lt;RadioButton
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New RadioButton"
          android:id="@+id/radioButton"
  
  
          /&gt;
      &lt;RadioButton
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New RadioButton"
          android:id="@+id/radioButton2"
  
          /&gt;
      &lt;RadioButton
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New RadioButton"
          android:id="@+id/radioButton3"
  
          /&gt;
      &lt;RadioButton
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New RadioButton"
          android:id="@+id/radioButton4"
  
         /&gt;
  
  
   &lt;/RadioGroup&gt;
  &lt;/LinearLayout&gt;
  </code></pre>