title: Android: Putting a vertical divider/separator line between textviews in a horizontal linear layout nested in vertical linear layout?
body: <p>For an android content view, I have a vertical linearlayout with some textviews that have some lines to divide and separated the vertical elements, this works fine and the xml is below.</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="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal" &gt;
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:text="@string/A" /&gt;                 
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:text="@string/B" /&gt;
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:text="@string/C" /&gt;    
      &lt;/LinearLayout&gt;    
      &lt;View 
           android:background="#ffffff" 
           android:layout_width = "fill_parent"
           android:layout_height="1dip"/&gt;    
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/D" /&gt;
      &lt;View  
           android:background="#ffffff" 
           android:layout_width = "fill_parent"
           android:layout_height="1dip" /&gt;
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/E" /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Now I want to add a vertical separator line between the horizontally placed text views in the nested textviews with strings A/B/C. When I try to do so by adding the hardcoded width View, the line spans the whole height from the parent linear layout.</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="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal" &gt;
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:text="@string/A" /&gt;         
          &lt;!--the vertical line separator--&gt;
          &lt;View  
       android:background="#ffffff" 
       android:layout_width = "1dip"
       android:layout_height="fill_parent" /&gt;         
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:text="@string/B" /&gt;
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:text="@string/C" /&gt;    
      &lt;/LinearLayout&gt;    
      &lt;View 
           android:background="#ffffff" 
           android:layout_width = "fill_parent"
           android:layout_height="1dip"/&gt;    
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/D" /&gt;
      &lt;View  
           android:background="#ffffff" 
           android:layout_width = "fill_parent"
           android:layout_height="1dip" /&gt;
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/E" /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>For this vertical separator view I have tried to use <code>android:layout_height="wrap_content"/&gt;</code> instead but the same result is presented. </p>
  
  <p>Is there a way to have a vertical separator here where the height is preserved with the introduction of a vertical line to separate textviews? Or must I choose a different layout?</p>