title: How to make android layout(UI) suitable for both hdpi and xxhdpi
body: <p>In my layout all content(text and images) load through server.when application run on both hdpi and xxhdpi bottom layout components are not showing.</p>
  
  <p>HDPI Screenshot</p>
  
  <p><img src="https://i.stack.imgur.com/0y0M8.jpg" alt="HDPI"></p>
  
  <p>XXHDPI Screenshot</p>
  
  <p><img src="https://i.stack.imgur.com/Am2wK.jpg" alt="xxhdpi"></p>
  
  <p>Is there any way to make layout to suitable for all device category?</p>
  
  <p>bellow is my layout code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"
  android:textAlignment="gravity" &gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="40dp"
      android:background="#ffebd5ca"
      android:gravity="center"
      android:orientation="horizontal" &gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="30dp"
          android:layout_weight="0.4"
          android:background="#ffebd5ca"
          android:gravity="center"
          android:orientation="vertical" &gt;
  
          &lt;ImageView
              android:id="@+id/imageView1"
              android:layout_width="100dp"
              android:layout_height="wrap_content"
              android:layout_gravity="center_vertical|center_horizontal"
              android:src="@drawable/titlelogo" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#ffebd5ca"
      android:orientation="horizontal"
      android:paddingLeft="8dp"
      android:paddingRight="8dp" &gt;
  
      &lt;TabHost
          android:id="@android:id/tabhost"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          &gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
  
  
  
              &lt;FrameLayout
                  android:id="@android:id/tabcontent"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" &gt;
  
              &lt;/FrameLayout&gt;
  
              &lt;TabWidget
                  android:id="@android:id/tabs"
                  android:layout_width="match_parent"
                  android:layout_height="fill_parent"
                  android:layout_alignParentBottom="true"
                  android:background="#ffebd5ca"
                  android:showDividers="none"
                  android:tabStripEnabled="true"
                  android:tabStripLeft="@drawable/btnline2"
                  android:tabStripRight="@drawable/btnline2"
                  android:textAlignment="viewEnd"
                  android:layout_marginBottom="-4dp"
                  android:gravity="bottom" &gt;
  
  
  
              &lt;/TabWidget&gt;
          &lt;/LinearLayout&gt;
      &lt;/TabHost&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_weight="0.3"
      android:background="#ffebd5ca"
      android:orientation="vertical"
      android:paddingBottom="8dp"
      android:paddingLeft="8dp"
      android:paddingRight="8dp" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:background="#ff5a3e30" &gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:gravity="center"
              android:orientation="vertical"
              android:padding="8dp" &gt;
  
              &lt;LinearLayout
                  android:layout_width="70dp"
                  android:layout_height="70dp"
                  android:layout_gravity="center"
                  android:background="@drawable/logo_border"
                  android:gravity="center" &gt;
  
                  &lt;ImageView
                      android:id="@+id/mLogoAdView"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_centerInParent="true" /&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="match_parent"
              android:gravity="left|center_vertical"
              android:orientation="vertical"
              android:paddingLeft="10dp" &gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="left"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@+id/txtCompany"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="SAMSUNG PVT LTD."
                      android:textColor="@color/tabhost_text_select"
                      android:textSize="12dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/txtAddressLine1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="No 124, Main Street, Colombo 07"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="#ffd3bdb2"
                      android:textSize="10dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/txtTelephone"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingTop="12dp"
                      android:text="T.P       :      011-2345678"
                      android:textColor="@color/tabhost_text_select"
                      android:textSize="10dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/txtMobile"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Mobile :      011-2345678"
                      android:textColor="@color/tabhost_text_select"
                      android:textSize="10dp" /&gt;
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>