title: Do I have to make separate layout for tabs?
body: <p>I am having a problem while making an app. Here's my xml Layout which is working fine on small screen but not working proper on Tabs.How How can I adjust the layout to make common for all screens. Also I would like to know that I have set textbox height in dps,w.r.t small screen(default one),but it is not occuping proper space in tab.So I can adjust it?</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent"
      android:orientation="vertical"
      android:layout_height="fill_parent"
  
      tools:context=".MainActivity"
      android:weightSum="1"
      android:background="#ffffffff"&gt;
  
  
      &lt;RelativeLayout
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_gravity="center_horizontal"
          android:layout_weight="0.55"
          android:weightSum="1"
          android:background="#1E90FF"&gt;
  
          &lt;ImageView
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:id="@+id/imageView"
              android:background="@drawable/lock"
              android:layout_alignParentTop="true"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="10dp" /&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Login"
  
              android:id="@+id/textView11"
              android:layout_below="@+id/imageView"
              android:layout_centerHorizontal="true"
              android:textColor="#ffffffff"
              android:textSize="20dp" /&gt;
  
          &lt;ImageButton
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/imageButton8"
              android:layout_alignParentBottom="true"
              android:layout_centerHorizontal="true"
              android:background="@drawable/f_icon"
              android:layout_below="@+id/textView11"
              android:layout_marginTop="60dp" /&gt;
  
  
      &lt;/RelativeLayout&gt;
  
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="center_horizontal"
          android:layout_weight="0.45"&gt;
  
  
  
  
          &lt;EditText
              android:layout_width="240dp"
              android:layout_height="40dp"
              android:id="@+id/editText10"
              android:background="@drawable/edittextstyle"
              android:drawableLeft="@drawable/textboxuser"
  
              android:drawablePadding="2dp"
              android:paddingLeft="5dip"
              android:paddingRight="26dip"
              android:hint="Username"
              android:singleLine="true"
  
              android:layout_gravity="center_horizontal"
              android:textColor="#ff464646"
              android:textSize="20dp"
              android:layout_marginTop="20dp" /&gt;
  
          &lt;EditText
              android:layout_width="240dp"
              android:layout_height="40dp"
              android:inputType="textPassword"
              android:ems="10"
              android:paddingLeft="10dip"
              android:paddingRight="26dip"
              android:background="@drawable/edittextstyle"
              android:drawableLeft="@drawable/textboxpwd"
              android:layout_margin="10dp"
              android:id="@+id/editText11"
              android:layout_gravity="center_horizontal"
              android:hint="Password"
              android:textSize="20dp" /&gt;
  
          &lt;Button
              android:layout_width="240dp"
              android:layout_height="40dp"
              android:text="Sign In"
              android:background="#1E90FF"
              android:layout_margin="10dp"
              android:id="@+id/button4"
              android:layout_gravity="center_horizontal"
              android:textColor="#ffffffff" /&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:text="Forgot Password !! Click Here"
  
              android:id="@+id/textView10"
              android:textColor="#ff424242"
              android:layout_gravity="center_horizontal"
              android:layout_height="wrap_content"
              android:layout_marginBottom="68dp" /&gt;
  
          &lt;Button
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
  
              android:text="Not a member yet? Join Now"
              android:onClick="register"
              android:id="@+id/button5"
              android:textColor="#fffcfffa"
  
              android:clickable="true"
  
  
              android:background="#ff000000" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>