title: Android inflated view is empty
body: <p>I am trying to add a divider between entries in a vertical LinearLayout, to emulate the appearance of a ListView. (I can't just use a ListView in this particular situation.)</p>
  
  <p>This is what I have in list_divider.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;View
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:background="@color/panel_border"
    android:layout_width="fill_parent"
    android:layout_height="@dimen/border_width"
   /&gt;
  </code></pre>
  
  <p>And here's the code which attempts to inflate this divider before every element except the first in the list:</p>
  
  <pre><code>LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  for (int i = 0; i &lt; categories.size(); i++ ) {
  
      if (i &gt; 0)
          items.addView(vi.inflate(R.layout.list_divider, null));    
          // these dividers never appear
  
      // but these main entries always appear just fine    
      items.addView(ad.getView(i, null, null));
  }
  </code></pre>
  
  <p>The main list items appear correctly, but the dividers are invisible.</p>
  
  <p>The dividers <em>do</em> appear if I change them to be a TextView rather than a plain View:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:background="@color/panel_border"
    android:layout_width="fill_parent"
    android:layout_height="@dimen/border_width"
    android:text="---"
   /&gt;
  </code></pre>
  
  <p>I have tried setting explicit pixel values for the width and height, as well as using the border_width definition and fill_parent options. It makes no difference.</p>
  
  <p>Is there something special about a plain old View which makes it not appear?</p>