title: Android "Add a vertical line" on "RelativeLayout" / "Linear Layout"
body: <p>I have read other questions about adding a vertical line in Android, here's my questions</p>
  
  <ol>
  <li>I was able to add a vertical line as a "View" under my main RelativeLayout, but fails to do it within sub RelativeLayout.</li>
  </ol>
  
  <p>code for a vertical line</p>
  
  <pre><code>&lt;View
  android:id="@+id/verticalSeperatorHours"
  android:layout_width="1dip"
  android:layout_height="match_parent"
  android:background="@color/medium_dark_gray" 
  /&gt;
  </code></pre>
  
  <p>code for a horizontal line:</p>
  
  <pre><code>&lt;LinearLayout
              android:id="@+id/currentTimeMarkerLinearLayout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="0dp"
              android:layout_marginTop="100dp"
              android:baselineAligned="false"
              android:orientation="horizontal"
              android:padding="0dp" &gt;
  
              &lt;View
                  android:layout_width="0dp"
                  android:layout_height="3dp"
                  android:layout_weight="1" /&gt;
  
              &lt;View
                  android:id="@+id/currentTimeLineView"
                  android:layout_width="0dp"
                  android:layout_height="1dp"
                  android:layout_weight="14"
                  android:background="@color/strong_blue" /&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My structure xml:</p>
  
  <ul>
  <li>RelativeLayout </li>
  <li><ul>
  <li>LinearLayout</li>
  </ul></li>
  <li><ul>
  <li>ScrollView</li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li>RelativeLayout</li>
  </ul></li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li><ul>
  <li>RelativeLayout</li>
  </ul></li>
  </ul></li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li><ul>
  <li><strong><em>"Adding a vertical line doesn't work"</em></strong></li>
  </ul></li>
  </ul></li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li><ul>
  <li><strong><em>"Adding a horizontal line works"</em></strong></li>
  </ul></li>
  </ul></li>
  </ul></li>
  <li>LinearLayout </li>
  <li><em><strong>Adding a vertical line here works but not what I want"</em></strong></li>
  </ul>
  
  <p>The "View" after the LinearLayout of horizontal line didn't appear. I realized that I didn't understand the structure of android layout in deep, so can someone explain it to me how it works. </p>
  
  <p>Complete Layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:arm="http://schemas.android.com/apk/res/edu.cmu.sv.arm"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:padding="0dp" &gt;
  
  &lt;LinearLayout ...
  
  
  &lt;View
      android:id="@+id/dividerView"
      android:layout_width="fill_parent"
      android:layout_height="1dp"
      android:layout_below="@+id/dayLabelsLinearLayout"
      android:background="@color/medium_gray" /&gt;
  
  &lt;ScrollView
      android:id="@+id/calendarScrollView"
      android:layout_width="match_parent"
      android:layout_height="fill_parent"
      android:layout_below="@+id/dividerView"
      android:layout_alignParentBottom="true"
      android:overScrollMode="never"
      android:padding="0dp"
      android:scrollbars="none"
      android:fadingEdge="none" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/calendarRelativeLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:padding="0dp" &gt;
  
          &lt;LinearLayout ...
  
  
          &lt;LinearLayout
              android:id="@+id/currentTimeMarkerLinearLayout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="0dp"
              android:layout_marginTop="100dp"
              android:baselineAligned="false"
              android:orientation="horizontal"
              android:padding="0dp" &gt;
  
              &lt;View
                  android:layout_width="0dp"
                  android:layout_height="3dp"
                  android:layout_weight="1" /&gt;
  
              &lt;View
                  android:id="@+id/currentTimeLineView"
                  android:layout_width="0dp"
                  android:layout_height="1dp"
                  android:layout_weight="14"
                  android:background="@color/strong_blue" /&gt;
          &lt;/LinearLayout&gt;
          &lt;View
                  android:id="@+id/verticalSeperatorHours"
                  android:layout_width="1dip"
                  android:layout_height="match_parent"
                  android:layout_marginLeft="100dp"
                  android:background="@color/medium_dark_gray" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  
  
  
  &lt;LinearLayout ...
  
  &lt;View ...
  
  &lt;/RelativeLayout&gt;
  </code></pre>