Android Layout for Tablets

Thephonetech

New Member
I am trying to make my app work for all devices, but I am having trouble doing so. How can I get rid of this gap?
M3Rwr.png
Here is what it is supposed to look like:
6RkLQ.png
It works fine on my phone ,but not on this tablet emulator. What techniques can I use to fix this? I have read supporting multiple screen sizes, but I can't make much of it.Here is the code: \[code\]<ImageView android:id="@+id/terranlogo1" android:layout_width="100dp" android:layout_height="100dp" android:layout_centerHorizontal="true" android:src="http://stackoverflow.com/questions/11354077/@drawable/terranlogo" /><ImageView android:id="@+id/protosslogo1" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentRight="true" android:src="http://stackoverflow.com/questions/11354077/@drawable/protosslogo" /><ImageView android:id="@+id/zerglogo1" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentLeft="true" android:src="http://stackoverflow.com/questions/11354077/@drawable/zerglogo" /><CheckBox android:id="@+id/ck_t1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/terranlogo1" android:layout_centerHorizontal="true" /><CheckBox android:id="@+id/ck_p1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@id/protosslogo1" android:layout_below="@id/protosslogo1" android:layout_marginLeft="25dp" /><CheckBox android:id="@+id/ck_z1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@id/zerglogo1" android:layout_below="@id/zerglogo1" android:layout_marginLeft="25dp" /><ImageView android:id="@+id/terranlogo2" android:layout_width="100dp" android:layout_height="100dp" android:layout_below="@id/ck_t1" android:layout_centerHorizontal="true" android:src="http://stackoverflow.com/questions/11354077/@drawable/terranlogo" /><ImageView android:id="@+id/protosslogo2" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentRight="true" android:layout_below="@id/ck_p1" android:src="http://stackoverflow.com/questions/11354077/@drawable/protosslogo" /><ImageView android:id="@+id/zerglogo2" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentLeft="true" android:layout_below="@id/ck_z1" android:src="http://stackoverflow.com/questions/11354077/@drawable/zerglogo" /><CheckBox android:id="@+id/ck_t2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/terranlogo2" android:layout_centerHorizontal="true" /><CheckBox android:id="@+id/ck_p2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@id/protosslogo1" android:layout_below="@id/protosslogo2" android:layout_marginLeft="25dp" /><CheckBox android:id="@+id/ck_z2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@id/zerglogo1" android:layout_below="@id/zerglogo2" android:layout_marginLeft="25dp" /><Spinner android:id="@+id/s_answertime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_marginBottom="80dp" /><Spinner android:id="@+id/s_gametime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/s_answertime" android:layout_alignBottom="@+id/s_answertime" android:layout_centerHorizontal="true" /><Spinner android:id="@+id/s_mistakenumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginBottom="80dp" /><TextView android:id="@+id/textView4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/ck_t2" android:layout_marginRight="18dp" android:layout_marginTop="17dp" android:gravity="center_vertical|center_horizontal" android:text="Choose your opponets race(s) and your race(s)" android:textSize="30dp" /><TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/s_gametime" android:gravity="center_vertical|center_horizontal" android:text="Answer Time" android:textSize="15dp" /><TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/textView1" android:layout_alignBottom="@+id/textView1" android:layout_alignParentRight="true" android:gravity="center_vertical|center_horizontal" android:text="Mistakes \nAllowed" android:textSize="15dp" /><TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/s_gametime" android:layout_centerHorizontal="true" android:gravity="center_vertical|center_horizontal" android:text="Game Length" android:textSize="15dp" />\[/code\]
 
Back
Top