title: Why Different Views When Run On a Real Device and the emulator
body: <p>I have Just Created Simple Screen Contains and Edit Text and a custom num pad keyboard my problem is when I the project on the emulator it shows a view of screen like this 
  <a href="https://i.stack.imgur.com/HYmuf.png" rel="nofollow noreferrer">enter image description here</a>
  but when I run on a real device it shows like this
  <a href="https://i.stack.imgur.com/JYgAr.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>all I need I want the same View in all Devices like the one in the emulator</p>
  
  <p>this is my xml file</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
  
      &lt;RelativeLayout android:layout_width="match_parent"
          android:id="@+id/rlp"
          android:layout_height="wrap_content"&gt;
  
      &lt;EditText
          android:id="@+id/pKeyBoardId"
          android:layout_width="300dp"
          android:layout_height="wrap_content"
          android:ems="10"
          android:inputType="none"
          android:editable="false"&gt;
      &lt;/EditText&gt;
          &lt;ImageButton android:id="@+id/id_search_button"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@drawable/exact"
              android:layout_marginEnd="30dp"
              android:layout_alignParentTop="true"
              android:layout_alignParentEnd="true" /&gt;
      &lt;/RelativeLayout&gt;
      &lt;EditText
          android:id="@+id/pAmountKeyBoardId"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:ems="10"
          android:layout_below="@+id/rlp"
          android:inputType="none"
          android:editable="false"&gt;
      &lt;/EditText&gt;
  
      &lt;GridLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:columnCount="3"
          android:layout_above="@+id/relativeLayout4"
          android:layout_alignParentStart="true"&gt;
  
          &lt;Button
              android:text="1"
              android:layout_height="65dp"
              android:layout_columnWeight="1"
              android:textSize="30dp"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:id="@+id/n1"
              android:background="@drawable/btn4_border"/&gt;
  
          &lt;Button
              android:text="2"
              android:textSize="30dp"
              android:layout_columnWeight="1"
              android:layout_height="65dp"
              android:id="@+id/n2"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:background="@drawable/btn4_border"/&gt;
          &lt;Button
              android:text="3"
              android:layout_columnWeight="1"
              android:layout_height="65dp"
              android:id="@+id/n3"
              android:textSize="30dp"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:background="@drawable/btn4_border"/&gt;
          &lt;Button
              android:text="4"
              android:layout_columnWeight="1"
              android:id="@+id/n4"
              android:textColor="#ffffff"
              android:layout_height="65dp"
              android:textStyle="bold"
              android:textSize="30dp"
              android:background="@drawable/btn4_border"/&gt;
          &lt;Button
              android:text="5"
              android:layout_columnWeight="1"
              android:layout_height="65dp"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:textSize="30dp"
              android:id="@+id/n5"
              android:background="@drawable/btn4_border"/&gt;
          &lt;Button
              android:text="6"
              android:layout_columnWeight="1"
              android:layout_height="65dp"
              android:id="@+id/n6"
              android:textSize="30dp"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:background="@drawable/btn4_border"/&gt;
          &lt;Button
              android:text="7"
              android:layout_columnWeight="1"
              android:id="@+id/n7"
              android:layout_height="65dp"
              android:textColor="#ffffff"
              android:textSize="30dp"
              android:textStyle="bold"
              android:background="@drawable/btn4_border"/&gt;
          &lt;Button
              android:text="8"
              android:layout_height="65dp"
              android:layout_columnWeight="1"
              android:id="@+id/n8"
              android:textColor="#ffffff"
              android:textSize="30dp"
              android:textStyle="bold"
              android:background="@drawable/btn4_border"/&gt;
          &lt;Button
              android:text="9"
              android:layout_columnWeight="1"
              android:id="@+id/n9"
              android:textColor="#ffffff"
              android:layout_height="65dp"
              android:textSize="30dp"
              android:textStyle="bold"
              android:background="@drawable/btn4_border"/&gt;
  
          &lt;Button
              android:text="CLR"
              android:layout_columnWeight="1"
              android:id="@+id/clear"
              android:layout_height="65dp"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:textSize="30dp"
              android:background="@drawable/btn3_border"/&gt;
  
          &lt;Button
              android:text="0"
              android:layout_columnWeight="1"
              android:id="@+id/n0"
              android:layout_height="65dp"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:textSize="30dp"
              android:background="@drawable/btn4_border"/&gt;
  
          &lt;Button
              android:text="."
              android:layout_columnWeight="1"
              android:id="@+id/dot"
              android:layout_height="65dp"
              android:textSize="30dp"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:background="@drawable/btn4_border"/&gt;
  
      &lt;/GridLayout&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="60dp"
          android:id="@+id/relativeLayout4"
          android:layout_alignParentBottom="true"
          android:layout_alignParentStart="true"&gt;
  
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:text="Apply"
              android:textAllCaps="true"
              android:background="#ff0000"
              android:gravity="center_vertical"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:textSize="30dp"
              android:layout_alignParentTop="true"
              android:layout_alignParentEnd="true" /&gt;
  
      &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>