title: how to auto resize, compatible, adjust screen size for all android devices
body: <p>I am creating a simple quiz test app "Target SDK API 16 (4.1 Jelly Beans)" Screen 3.7 (480x800 hdpi).</p>
  
  <p>This app looks great on 3.7 (480x800), but when I run this on another screening device like 2.7 (240x320), 7.0 (1024x600), 10.1 (1280x800) its screen resolution gets messed up or looks bad.</p>
  
  <p>For better understanding see screenshot:</p>
  
  <p><strong>2.7 (240x320)</strong></p>
  
  <p><a href="http://postimg.cc/image/m3sob88mp/" rel="nofollow noreferrer">http://postimg.cc/image/m3sob88mp/</a></p>
  
  <p><strong>3.7 (480x800)</strong></p>
  
  <p><a href="http://postimg.cc/image/wf513w0c1/" rel="nofollow noreferrer">http://postimg.cc/image/wf513w0c1/</a></p>
  
  <p><strong>7.0 (1024x600)</strong></p>
  
  <p><a href="http://postimg.cc/image/fc298djn5/" rel="nofollow noreferrer">http://postimg.cc/image/fc298djn5/</a></p>
  
  <p><strong>10.1 (1280x800)</strong></p>
  
  <p><a href="http://postimg.cc/image/isk5gon7p/" rel="nofollow noreferrer">http://postimg.cc/image/isk5gon7p/</a></p>
  
  <p>I want this to be compatible / look perfect with all screen sizes just like it looks in 3.7 (480x800) </p>
  
  <p>How to auto resize, make compatible, adjust screen size for all android devices so it looks perfect in every screen resolution?</p>
  
  <p>Or will I have to create a different app or different screen sizes?</p>
  
  <p>What I tried to make screen compatible is: 
  added these lines to "AndroidManifest.xml"</p>
  
  <pre><code>&lt;supports-screens&gt;
  
          android:resizeable="true"
          android:smallScreens="true"
          android:normalScreens="true"
          android:largeScreens="true"
          android:xlargeScreens="true"
          android:anyDensity="true"
  
      &lt;/supports-screens&gt;
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.usd.quiztest"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="16" /&gt;
  
      &lt;supports-screens&gt;
          android:resizeable="true"
          android:smallScreens="true"
          android:normalScreens="true"
          android:largeScreens="true"
          android:xlargeScreens="true"
          android:anyDensity="true"
      &lt;/supports-screens&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
  
          &lt;activity
              android:name="com.usd.quiztest.Logo"
              android:label="@string/app_name"            
              android:theme="@android:style/Theme.Black.NoTitleBar" &gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;               
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
  
          &lt;/activity&gt;
  
          &lt;activity
              android:name="com.usd.quiztest.First"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;                
          &lt;activity
              android:name="com.usd.quiztest.Q1"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;        
           &lt;activity
              android:name="com.usd.quiztest.Q2"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;
           &lt;activity
              android:name="com.usd.quiztest.Q3"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;
           &lt;activity
              android:name="com.usd.quiztest.Q4"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;
           &lt;activity
              android:name="com.usd.quiztest.Q5"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;
           &lt;activity
              android:name="com.usd.quiztest.FinalPage"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;
           &lt;activity
              android:name="com.usd.quiztest.Score"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>first_screen.xml</strong> (this is the screen that is shown in the screenshot)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/RelativeLayout1"
      android:layout_width="match_parent"
      android:layout_height="match_parent"    
      android:orientation="vertical" &gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="30dp"
          android:contentDescription="ql"
          android:gravity="center"
          android:src="@drawable/ql" /&gt;
  
      &lt;Button
          android:id="@+id/start_button"
          android:layout_width="254dp"
          android:layout_height="wrap_content"
          android:layout_below="@+id/imageView1"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="30dp"
          android:text="Start Quiz Test"
          android:textColor="#000000" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>