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


i added scrollview scoll down see button. ive added code below.i have set landscape orientation , last button (the eighth) of app not fitting on 4" screen samsung mini s3. fits on larger screensizes on emulator. ive tried setting parent fixed size, radio buttons seem spread out more when on actual device. ideas?

<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> 

`

wrap relative layout scrollview

<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" tools:context=".mainactivity" >           <relativelayout             android:layout_width="match_parent"            android:layout_height="match_parent"            android:background="#111111"            android:gravity="left" >             <!-- stuff -->             </relativelayout>  </scrollview> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -