I have seen apps that when run on any device, it feels perfectly to the scree of the device. How do i do something like that: Below is my code. for some smaller device, the layout fits well to the screen. But for Higher Screen Resolution, it does not fit to the screen. How do i make it fit to the screen, and is there any tool i can use to achieve this ?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_horizontal"
android:background="@drawable/bgmenu" >
<ScrollView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:background="@drawable/bgmenu" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="561dp"
android:layout_gravity="center_horizontal"
android:orientation="vertical" >
<View
android:layout_width="fill_parent"
android:layout_height="10dp" />
<View
android:layout_width="fill_parent"
android:layout_height="30dp" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<Button
android:id="@+id/btnHausa"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="@string/hausa"
android:textColor="#FFF"
android:textStyle="bold" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<View
android:layout_width="fill_parent"
android:layout_height="15dp" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<Button
android:id="@+id/btnYoruba"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="@string/yoruba"
android:textColor="#FFF"
android:textStyle="bold" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<View
android:layout_width="fill_parent"
android:layout_height="15dp" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<Button
android:id="@+id/btnIgbo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="@string/igbo"
android:textColor="#FFF"
android:textStyle="bold" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<View
android:layout_width="fill_parent"
android:layout_height="15dp" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<Button
android:id="@+id/btnPidginEnglish"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="@string/PidginEnglish"
android:textColor="#FFF"
android:textStyle="bold" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<View
android:layout_width="fill_parent"
android:layout_height="15dp" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
<Button
android:id="@+id/btnEnglish"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="@string/english"
android:textColor="#FFF"
android:textStyle="bold" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#000" />
</LinearLayout>
</ScrollView>
</LinearLayout>