title: How to optimize a image with a large resolution of 1920x1080, in order to make it as a background?
body: <p>I have a Tabhost in my app which have 5 tabs in it. I set a background image on my tabhost by putting <code>android:background = "@drawable/background"</code> in my xml file, but unfortunately the whole ui becomes laggy. How can I optimize the image in order to eliminate the lag in my UI? Please help me with this one. </p>
  
  <pre><code>&lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
  android:background = "@drawable/background"&gt;
  
      &lt;LinearLayout
          android:id="@+id/LinearLayout01"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="#FCAFA6"
              android:orientation="vertical" &gt;
  
              &lt;ImageView
                  android:layout_width="fill_parent"
                  android:layout_height= "52dp"
                  android:background="@drawable/header" /&gt;
  
              &lt;TextView
                  android:id="@+id/tabTitle"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="5dp"
                  android:gravity="center"
                  android:text="Home"
                  android:textColor="#FFFFFF" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"&gt;
          &lt;/FrameLayout&gt;
  
          &lt;TabWidget
              android:id="@android:id/tabs"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_weight="0" &gt;
          &lt;/TabWidget&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/TabHost&gt;
  </code></pre>