SOLVED.Android.XML. Large radio group all not fitting to screen

Termy

New Member
I added a scrollview to scoll down to see the button. Ive added it to the code below.I have set landscape orientation and the last button (the eighth) of my app is not fitting on 4" screen for my samsung mini S3. It fits on larger screensizes on the emulator. Ive tried setting the parent to a fixed size, the radio buttons seem to spread out more when on the actual device. Any ideas?\[code\]<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:background="#111111"android:gravity="left"tools:context=".MainActivity" > <RelativeLayout> <RadioGroup android:id="@+id/RadioGroup1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:orientation="vertical" > <RadioButton android:id="@+id/RadioButtonlowC1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:layout_marginTop="0dp" android:button="@drawable/my_radio" android:checked="false" /> <RadioButton android:id="@+id/RadioButtonD1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:button="@drawable/my_radio" /> <RadioButton android:id="@+id/RadioButtonE1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:button="@drawable/my_radio" /> <RadioButton android:id="@+id/RadioButtonF1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:button="@drawable/my_radio" /> <RadioButton android:id="@+id/RadioButtonG1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:button="@drawable/my_radio" /> <RadioButton android:id="@+id/RadioButtonA1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:button="@drawable/my_radio" /> <RadioButton android:id="@+id/RadioButtonB1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:button="@drawable/my_radio" /> <RadioButton android:id="@+id/RadioButtonC1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:button="@drawable/my_radio" /></RadioGroup>\[/code\]`
 
Back
Top