title: How can I set the width of radio buttons to change with regards to screen size? (android)
body: <p>I have these radio buttons and they need <code>android:width="X"</code> and <code>android:height"X"</code> however, I do not know how to set these properties so that they adapt to a different screen size.</p>
  
  <p>Here is the code I'm using for my buttons:</p>
  
  <pre><code>    &lt;RadioGroup android:layout_width="fill_parent"
          android:layout_height="50px" android:orientation="horizontal"
          android:checkedButton="@+id/first" android:id="@+id/states"&gt;
  
                  &lt;RadioButton android:id="@+id/first"
                      android:background="@drawable/button_radio" android:width="50px"
                      android:height="50px" /&gt;
  
                  &lt;RadioButton android:id="@+id/second"
                      android:background="@drawable/button_radio" android:width="50px"
                      android:height="50px" /&gt;
  
                  &lt;RadioButton android:id="@+id/third"
                      android:background="@drawable/button_radio" android:width="50px"
                      android:height="50px" /&gt;
  
                  &lt;RadioButton android:id="@+id/fourth"
                      android:background="@drawable/button_radio" android:width="50px"
                      android:height="50px" /&gt;
  
                  &lt;RadioButton android:id="@+id/fifth"
                      android:background="@drawable/button_radio" android:width="50px"
                      android:height="50px" /&gt;
  
      &lt;/RadioGroup&gt;
  </code></pre>
  
  <p>I have tried putting the Radio buttons in a table row, but then they don't operate properly. When I click one, it selected it, but didn't unselect it when I clicked another.</p>
  
  <p>I have tried replacing the <code>android:width</code> with <code>android:layout_width</code> but then they don't show.</p>
  
  <p>I have also tried using dip, but then the buttons didn't show up.</p>
  
  <p>I should also add that I am using drawables instead of the stock radio buttons. I don't know if this would make a difference, but the drawables are all the same size (50px x 50px).</p>
  
  <p>Does anyone know how I can set the height and width of these so they will adjust themselves to different screen sizes?</p>