Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Did you ever find a solution to this? My intermediate solution might help, but it's not the full picture for me. I've been able to do this by setting specific widths, but this does not allow the view to resize to fit the screen width:</p> <pre><code> &lt;RelativeLayout android:id="@+id/overall_layout" android:layout_width="290dp" android:layout_height="wrap_content"&gt; &lt;RadioGroup android:id="@+id/overall" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;RadioButton android:id="@+id/overall_1" android:tag="1" android:button="@drawable/radio_1" android:layout_width="50dp" android:layout_marginRight="10dp" android:layout_height="wrap_content"&gt;&lt;/RadioButton&gt; &lt;RadioButton android:id="@+id/overall_2" android:tag="2" android:button="@drawable/radio_2" android:layout_width="50dp" android:layout_marginRight="10dp" android:layout_height="wrap_content"&gt;&lt;/RadioButton&gt; &lt;RadioButton android:id="@+id/overall_3" android:tag="3" android:button="@drawable/radio_3" android:layout_width="50dp" android:layout_marginRight="10dp" android:layout_height="wrap_content"&gt;&lt;/RadioButton&gt; &lt;RadioButton android:id="@+id/overall_4" android:tag="4" android:button="@drawable/radio_4" android:layout_width="50dp" android:layout_marginRight="10dp" android:layout_height="wrap_content"&gt;&lt;/RadioButton&gt; &lt;RadioButton android:id="@+id/overall_5" android:tag="5" android:button="@drawable/radio_5" android:layout_width="50dp" android:layout_height="wrap_content"&gt;&lt;/RadioButton&gt; &lt;/RadioGroup&gt; &lt;TextView android:text="left" android:id="@+id/left" android:layout_below="@id/overall" android:layout_alignParentLeft="true" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt; &lt;TextView android:text="right" android:id="@+id/right" android:layout_below="@id/overall" android:layout_alignParentRight="true" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Note there is no margin on the last button.</p> <p>I am trying to have 5 custom buttons in a radio group, with the 1st left-justified and the last right-justified. The buttons are exactly 50 pixels wide and I don't want any text associated with the buttons individually. The 2 texts below are left and right-justfied in the relative layout. Using "layout_gravity" has no effect and "layout_weight" adds padding to the right of each button, which causes the right-most button to no longer be justified.</p> <p>Much hair-pulling on this.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload