Layout item positions and sizes get changed for different devices
<p>I have tested my application in genymotion emulator using two Android OSs. Lollipop and Ice Cream Sandwich. Worked fine in both devices. Problem is when I tested in real devices, item positions and sizes get changed. </p>

<p>In my xiomi mi4c (lollipop) screen looks ok
<a href="https://i.stack.imgur.com/nyAmy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nyAmy.png" alt="Mi4c Screenshot"></a></p>

<p>But in micromax canves (Ice Cream Sandwich) this problem happens
<a href="https://i.stack.imgur.com/acbX0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/acbX0.png" alt="Micromax Screenshot"></a></p>

<p>I want my app look like the same as in my mi4c in every devices.</p>

<p>This is my xml file.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout_widget"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/bg_register"
        android:orientation="vertical"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"
        tools:context="com.ceatkelanisrilanka.dushanmadushanka.ceat.CeatMainActivity"
        tools:showIn="@layout/activity_ceat_main"&gt;

        &lt;include
            android:id="@+id/app_bar"
            layout="@layout/app_toolbar_welcome_menu"&gt;&lt;/include&gt;

        &lt;LinearLayout
            android:id="@+id/mainLayout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"&gt;

            &lt;LinearLayout
                android:id="@+id/firstLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:paddingTop="5dp"&gt;

                &lt;LinearLayout
                    android:id="@+id/enMonth"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:paddingLeft="10dp"
                    android:paddingStart="10dp"&gt;

                    &lt;TextView
                        android:id="@+id/txtMonth"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Month"
                        android:textColor="#ffffff"
                        android:textSize="24sp" /&gt;

                    &lt;TextView
                        android:id="@+id/yearTextV"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="year"
                        android:layout_gravity="center"
                        android:textAppearance="?android:attr/textAppearanceSmall"
                        android:textColor="#ffffff" /&gt;


                &lt;/LinearLayout&gt;

                &lt;LinearLayout
                    android:id="@+id/pViewLayout"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:orientation="vertical"&gt;

                    &lt;com.rey.material.widget.ProgressView
                        android:id="@+id/pViewew"
                        cpd_strokeColor="@android:color/holo_red_dark"
                        cpd_strokeSecondaryColor="@android:color/holo_blue_bright"
                        cpd_strokeSize="25dp"
                        android:layout_width="50dp"
                        android:layout_height="50dp"
                        app:pv_autostart="true"
                        app:pv_circular="true"
                        app:pv_progressMode="indeterminate"
                        app:pv_progressStyle="@style/Material.Drawable.CircularProgress" /&gt;

                &lt;/LinearLayout&gt;

                &lt;LinearLayout
                    android:id="@+id/snMonthLayout"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="right"
                    android:orientation="vertical"
                    android:paddingEnd="10dp"
                    android:paddingRight="10dp"&gt;

                    &lt;TextView
                        android:id="@+id/txtMonthSn"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:text="MonthSn"
                        android:textColor="#ffffff"
                        android:textSize="24sp" /&gt;

                &lt;/LinearLayout&gt;

            &lt;/LinearLayout&gt;

            &lt;RelativeLayout
                android:id="@+id/secondLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:paddingTop="15dp"&gt;

                &lt;com.github.lzyzsd.circleprogress.ArcProgress
                    android:id="@+id/arc_progress"
                    android:layout_width="220dp"
                    android:layout_height="220dp"
                    android:layout_marginLeft="15dp"
                    android:layout_marginStart="15dp" /&gt;

                &lt;LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:gravity="center"
                    android:orientation="vertical"
                    android:paddingRight="15dp"
                    android:paddingTop="25dp"&gt;

                    &lt;com.hookedonplay.decoviewlib.DecoView
                        android:id="@+id/dynamicArcView"
                        android:layout_width="100dp"
                        android:layout_height="100dp"
                        android:padding="5dp" /&gt;

                    &lt;TextView
                        android:id="@+id/pView"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="0 %"
                        android:textColor="#4B73C4"
                        android:textSize="20sp" /&gt;

                    &lt;TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Precentage"
                        android:textColor="#4B73C4"
                        android:textSize="15sp" /&gt;

                &lt;/LinearLayout&gt;
            &lt;/RelativeLayout&gt;

            &lt;LinearLayout
                android:id="@+id/thirdLayout"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="horizontal"&gt;

                &lt;LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:paddingLeft="10dp"
                    android:paddingTop="20dp"&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center_vertical"
                        android:orientation="horizontal"&gt;

                        &lt;TextView
                            android:id="@+id/txtMtar"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Monthly Target"
                            android:textAppearance="?android:attr/textAppearanceMedium"
                            android:textColor="#ffffff" /&gt;

                    &lt;/LinearLayout&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center_vertical"
                        android:orientation="horizontal"&gt;

                        &lt;TextView
                            android:id="@+id/txtMAch"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Achievment"
                            android:textAppearance="?android:attr/textAppearanceMedium"
                            android:textColor="#ffffff" /&gt;

                    &lt;/LinearLayout&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center_vertical"
                        android:orientation="horizontal"&gt;

                        &lt;TextView
                            android:id="@+id/txtPre"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Percentage"
                            android:textAppearance="?android:attr/textAppearanceMedium"
                            android:textColor="#ffffff" /&gt;

                    &lt;/LinearLayout&gt;


                &lt;/LinearLayout&gt;

                &lt;LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1.1"
                    android:orientation="vertical"
                    android:paddingTop="20dp"&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="horizontal"&gt;

                        &lt;TextView
                            android:id="@+id/txtTarget"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="M"
                            android:textAppearance="?android:attr/textAppearanceMedium"
                            android:textColor="#ffffff" /&gt;

                    &lt;/LinearLayout&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="horizontal"&gt;

                        &lt;TextView
                            android:id="@+id/txtAchievement"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="M"
                            android:textAppearance="?android:attr/textAppearanceMedium"
                            android:textColor="#ffffff" /&gt;


                    &lt;/LinearLayout&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="horizontal"&gt;

                        &lt;TextView
                            android:id="@+id/txtCollection"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="M"
                            android:textAppearance="?android:attr/textAppearanceMedium"
                            android:textColor="#ffffff" /&gt;


                    &lt;/LinearLayout&gt;
                &lt;/LinearLayout&gt;

                &lt;LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:paddingTop="20dp"&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="horizontal"&gt;

                        &lt;Button
                            android:id="@+id/bTon"
                            android:layout_width="120dp"
                            android:layout_height="wrap_content"
                            android:text="Ton"
                            android:textColor="@color/border_gray" /&gt;

                    &lt;/LinearLayout&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="horizontal"&gt;


                        &lt;Button
                            android:id="@+id/bValue"
                            android:layout_width="120dp"
                            android:layout_height="wrap_content"
                            android:text="Value"
                            android:textColor="@color/border_gray" /&gt;


                    &lt;/LinearLayout&gt;

                    &lt;LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="horizontal"&gt;

                        &lt;Button
                            android:id="@+id/bCollection"
                            android:layout_width="120dp"
                            android:layout_height="wrap_content"
                            android:text="Collection"
                            android:textColor="@color/border_gray" /&gt;

                    &lt;/LinearLayout&gt;

                &lt;/LinearLayout&gt;
            &lt;/LinearLayout&gt;
        &lt;/LinearLayout&gt;

    &lt;/LinearLayout&gt;


    &lt;fragment
        android:id="@+id/fragment_navigation_drawer"
        android:name="com.ceatkelanisrilanka.dushanmadushanka.ceat.fragments.NavigationDrawerFragment"
        android:layout_width="@dimen/nav_drawer_width"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        app:layout="@layout/fragment_navigation_drawer"
        tools:layout="@layout/fragment_navigation_drawer"&gt;&lt;/fragment&gt;


&lt;/android.support.v4.widget.DrawerLayout&gt;
</code></pre>