Имам някои радио бутони (както във вертикална, така и в хоризонтална ориентация) и искам текстът да оправдае android:text="1", android:text="2", android:text="3" и android:text=" 4" от съответните радио бутони вляво (до радио бутона). Не успях да намеря решение за настройка на LinearLayout, за да постигна това. Всяка помощ ще бъде оценена. Моят xml файл е:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
<RadioGroup
android:id="@+id/Group01"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb01"
android:layout_width="50dp"
android:layout_height="15pt"
android:checked="true"
android:text="1" />
<RadioButton
android:id="@+id/rb02"
android:layout_width="50dp"
android:layout_height="15pt"
android:checked="true"
android:text="2" />
</RadioGroup>
<RadioGroup
android:id="@+id/Group02"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb03"
android:layout_width="50dp"
android:layout_height="15pt"
android:checked="true"
android:text="3" />
<RadioButton
android:id="@+id/rb04"
android:layout_width="50dp"
android:layout_height="15pt"
android:checked="true"
android:text="4" />
</RadioGroup>
</LinearLayout>