java code how to support for multiple screen size

bmxking

New Member
I had developed an application. The size i developed was 3.7in WVGA Nexus One. So when display larger than this screen, it does not have problem. When i display smaller than 3.7in, there problem came. Here is my xml, i am using fixed px for some widget.\[code\]<LinearLayout android:id="@+id/layout_content" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@id/layout_title" android:background="@drawable/backrepeat" android:gravity="center_vertical|center_horizontal" > <ScrollView android:id="@+id/scrollView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical|center_horizontal" > <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal" > <TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal" > <TableRow android:layout_width="fill_parent" android:gravity="center_vertical|center_horizontal" android:paddingBottom="10px" android:paddingTop="10px" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical|center_horizontal" > <TextView android:id="@+id/fixtext_name" android:layout_width="80px" android:layout_height="wrap_content" android:gravity="right" android:paddingBottom="10px" android:text="
 
Back
Top