title: android two linearlayouts with equivalent partition via android:layout_weight not in line
body: <p>I want to display three different values allocated to two different headers, in other words a first header with one value and a second one with two values</p>
  
  <p>My approach is to split the "header linear layout" 40/60 and the "values linear layout" 40/30/30. In order to not display the text beginning at the border, I put everywhere an <code>android:layout_marginLeft="15dp"</code> in, so finally it should remain proportional.</p>
  
  <p>In my XML, I declare the following:</p>
  
  <pre><code>&lt;LinearLayout 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"&gt;
      &lt;TextView 
          android:layout_weight="4"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="15dp"
          android:text="@string/txt_price_chf"
          /&gt;
      &lt;TextView 
          android:layout_weight="6"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="15dp"
          android:text="@string/txt_price_offshore_chf"
          /&gt;
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"&gt;
      &lt;TextView android:id="@+id/tv_price_ch"
          android:layout_weight="4"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="15dp"
          android:text="Value1"
          /&gt;
  
      &lt;TextView android:id="@+id/tv_price_off_chf"
          android:layout_weight="3"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="15dp"
          android:text="Value2"
          /&gt;
  
      &lt;TextView android:id="@+id/tv_price_off_eur"
          android:layout_weight="3"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="15dp"
          android:text="Value3"
          /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The result is following output:</p>
  
  <p><img src="https://i.stack.imgur.com/3Bxlm.png" alt="enter image description here"></p>
  
  <p>Why are the "Price offshore:"-TextView and the "Value2"-TextView not in line? Note that "Price offshore" is saved in my strings.xml, there is no error like a whitespace or something. First I thought, it's caused by the <code>android:layout_marginLeft="15dp"</code>, but </p>
  
  <ul>
  <li><p>how I understood it the "dp" is a relative value to a specific
     resolution (so the split-off by <code>android:layout_weigth</code> should not
     effect this) and</p></li>
  <li><p>if I remove the margins, they are still not in
     line.</p></li>
  </ul>
  
  <p>Has anyone an idea? Do I overlook something obvious?</p>