title: Why LinearLayout's margin is being ignored if used as ListView row view
body: <p>I was wondering, if I merely provide a single layer of <code>LinearLayout</code> as ListView's row view, its margin will be ignored.</p>
  
  <h2>Margin will be ignored if used of ListView's row view</h2>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_marginLeft="5dp"
  </code></pre>
  
  <p>However, if I provide double layer of <code>LinearLayout</code>, with first layer acted as "dummy" layer, its margin will not be ignored.</p>
  
  <h2>We will have margin in ListView's row view</h2>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/buyPortfolioLinearLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout 
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginLeft="5dp"
  </code></pre>
  
  <p>May I know why it happen so?</p>