title: java code how to support for multiple screen size
body: <p>I had developed an application. The size i developed was <strong>3.7in WVGA Nexus One</strong>. </p>
  
  <p>So when display larger than this screen, it does not have problem. When i display smaller than 3.7in, there problem came. </p>
  
  <p>Here is my xml, i am using fixed px for some widget.</p>
  
  <pre><code>&lt;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" &gt;
  
      &lt;ScrollView
          android:id="@+id/scrollView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="center_vertical|center_horizontal" &gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:gravity="center_vertical|center_horizontal" &gt;
  
              &lt;TableLayout
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:gravity="center_vertical|center_horizontal" &gt;
  
                  &lt;TableRow
                      android:layout_width="fill_parent"
                      android:gravity="center_vertical|center_horizontal"
                      android:paddingBottom="10px"
                      android:paddingTop="10px" &gt;
  
                      &lt;LinearLayout
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:gravity="center_vertical|center_horizontal" &gt;
  
                          &lt;TextView
                              android:id="@+id/fixtext_name"
                              android:layout_width="80px"
                              android:layout_height="wrap_content"
                              android:gravity="right"
                              android:paddingBottom="10px"
                              android:text="姓名 :"
                              android:textColor="#000000"
                              android:textSize="30px" /&gt;
  
                          &lt;EditText
                              android:id="@+id/text_name"
                              android:layout_width="400px"
                              android:layout_height="wrap_content"
                              android:ems="15"
                              android:gravity="left"
                              android:inputType="textPersonName"
                              android:paddingBottom="10px"
                              android:textSize="30px" &gt;
                          &lt;/EditText&gt;
                      &lt;/LinearLayout&gt;
                  &lt;/TableRow&gt;                        
              &lt;/TableLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is an example of my application layout. The total width is 480px and height using </p>
  
  <blockquote>
    <p>fill_parent</p>
  </blockquote>
  
  <p>So, height does not have problem.</p>
  
  <pre><code>&lt;supports-screens
      android:anyDensity="true"
      android:largeScreens="true"
      android:normalScreens="true"
      android:resizeable="true"
      android:smallScreens="true"
      android:xlargeScreens="true"
      android:requiresSmallestWidthDp="480"
      android:compatibleWidthLimitDp="480"
      android:largestWidthLimitDp="480" &gt;
  &lt;/supports-screens&gt;
  </code></pre>
  
  <p>This is the support-screen attribute in manifest xml. I had set all already.</p>
  
  <p>The problem was when i display in <strong>2.7in QVGA</strong> (something like SG Mini), its only display 240px width only instead of full screen items.</p>
  
  <p>I want to ask how to squeeze or re-size application base on application screen size?</p>
  
  <p>If can, do i need to code same thing for all activity?</p>