title: Layout xml issue in Android
body: <p>Here is my layout:
  <img src="https://i.imgur.com/h9ot4.png" alt="layout"></p>
  
  <p>Here is my XML. My layout is good except the red color part. I could not able to bring it into view. There is issue in the alignment. Is there a tool to design the layouts easily? Always facing issue in the alignments compatible to all resolutions and for both portrait and landscape dimensions.</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="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical" &gt;
  
  &lt;RelativeLayout
      android:id="@+id/relativeLayout2"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="5dip"
      android:orientation="horizontal" &gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayout2"
          android:layout_width="400dp"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_toLeftOf="@+id/linearLayout3"
          android:background="#fff"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:id="@+id/linearLayout1"
              android:layout_width="match_parent"
              android:layout_height="400dp"
              android:background="#fff"
              android:orientation="vertical" &gt;
  
              &lt;ImageView
                  android:id="@+id/productImageView"
                  android:layout_width="fill_parent"
                  android:layout_height="380dp" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayout5"
          android:layout_width="500dp"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="420dp"
          android:background="#fff"
          android:orientation="horizontal" &gt;
  
          &lt;RelativeLayout
              android:id="@+id/relativeLayout1"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="5dip" &gt;
  
              &lt;LinearLayout
                  android:id="@+id/linearLayout2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentLeft="true"
                  android:layout_toLeftOf="@+id/linearLayout3"
                  android:background="#fff"
                  android:orientation="vertical" &gt;
  
                  &lt;LinearLayout
                      android:id="@+id/linearLayout4"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_alignParentLeft="true"
                      android:layout_marginTop="5dip"
                      android:layout_toLeftOf="@+id/linearLayout3"
                      android:background="#fff"
                      android:orientation="vertical" &gt;
  
                      &lt;TextView
                          android:id="@+id/product_name"
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/linearLayout5"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_alignParentLeft="true"
                      android:layout_marginTop="5dip"
                      android:layout_toLeftOf="@+id/linearLayout3"
                      android:background="#fff"
                      android:orientation="horizontal" &gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayout7"
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:layout_alignParentLeft="true"
                          android:layout_toLeftOf="@+id/linearLayout3"
                          android:layout_weight="1"
                          android:background="#fff"
                          android:orientation="horizontal" &gt;
  
                          &lt;TextView
                              android:id="@+id/your_price_tv"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:text="Your Price" /&gt;
                      &lt;/LinearLayout&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayout8"
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:layout_alignParentLeft="true"
                          android:layout_toLeftOf="@+id/linearLayout3"
                          android:layout_weight="1"
                          android:background="#fff"
                          android:orientation="horizontal" &gt;
  
                          &lt;TextView
                              android:id="@+id/your_price"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content" /&gt;
                      &lt;/LinearLayout&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/linearLayout6"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_alignParentLeft="true"
                      android:layout_marginTop="5dip"
                      android:layout_toLeftOf="@+id/linearLayout3"
                      android:background="#fff"
                      android:orientation="horizontal" &gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayout9"
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:layout_alignParentLeft="true"
                          android:layout_toLeftOf="@+id/linearLayout3"
                          android:layout_weight="1"
                          android:background="#fff"
                          android:orientation="horizontal" &gt;
  
                          &lt;TextView
                              android:id="@+id/button4"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:text="Retail Price" /&gt;
                      &lt;/LinearLayout&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayout10"
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:layout_alignParentLeft="true"
                          android:layout_toLeftOf="@+id/linearLayout3"
                          android:layout_weight="1"
                          android:background="#fff"
                          android:orientation="horizontal" &gt;
  
                          &lt;TextView
                              android:id="@+id/retail_price"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:text="Button" /&gt;
                      &lt;/LinearLayout&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/linearLayout3"
                  android:layout_width="70dip"
                  android:layout_height="wrap_content"
                  android:layout_alignBottom="@+id/linearLayout2"
                  android:layout_alignParentRight="true"
                  android:layout_alignTop="@+id/linearLayout2"
                  android:background="#c0c0c0"
                  android:orientation="vertical" &gt;
  
                  &lt;ImageView
                      android:id="@+id/button6"
                      android:layout_width="wrap_content"
                      android:layout_height="fill_parent"
                      android:text="Button" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;RelativeLayout
              android:id="@+id/linearLayout15"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_marginTop="5dip"
              android:background="#c0c0c0"
              android:orientation="vertical" &gt;
  
              &lt;LinearLayout
                  android:id="@+id/linearLayout11"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentRight="true"
                  android:layout_marginTop="5dip"
                  android:background="#c0c0c0"
                  android:orientation="horizontal" &gt;
  
                  &lt;Button
                      android:id="@+id/button6"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:text="Buy Now" /&gt;
  
                  &lt;Button
                      android:id="@+id/button7"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:text="Gush It" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/linearLayout12"
                  android:layout_width="fill_parent"
                  android:layout_height="30dip"
                  android:layout_alignParentRight="true"
                  android:layout_marginTop="5dip"
                  android:background="#c0c0c0"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@+id/button6"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:text="Description" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/linearLayout13"
                  android:layout_width="fill_parent"
                  android:layout_height="60dip"
                  android:layout_alignParentRight="true"
                  android:layout_marginTop="5dip"
                  android:background="#c0c0c0"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@+id/product_description"
                      android:layout_width="fill_parent"
                      android:layout_height="400dp"
                      android:text="Button" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/RelativeLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>