title: View over another View
body: <p>I have some Popups on my screen, and need something not so common.</p>
  
  <p>I Layout my popup with Header + Content + Footer into a LinearLayout. But I need a little arrow to show on my component. </p>
  
  <p>When the popup is above the anchor and the arrow is down, I use the following code to have it drawed.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/content" android:orientation="vertical"
  android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;
  
  &lt;LinearLayout android:id="@+id/header" android:background="@drawable/background_header"
      android:orientation="horizontal" android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  &lt;/LinearLayout&gt;
  
  &lt;HorizontalScrollView android:background="@drawable/background"
      android:layout_width="wrap_content" android:layout_height="match_parent"
      android:scrollbars="none"&gt;
  
  &lt;/HorizontalScrollView&gt;
  
  &lt;ImageView android:id="@+id/arrow_down" android:layout_width="wrap_content"
      android:layout_height="wrap_content" android:layout_marginTop="-3dip"
      android:src="@drawable/quickcontact_arrow_down" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>In runtime I'm able to place the arrow exactly above the anchor with the following code.</p>
  
  <pre><code>    ViewGroup.MarginLayoutParams param = (ViewGroup.MarginLayoutParams) mArrowDown
              .getLayoutParams();
      param.leftMargin = root.getMeasuredWidth()
              - (screenWidth - anchor.getLeft());
  </code></pre>
  
  <p>And it's show correctly.</p>
  
  <p>Now I need do the same thing but the arrow needs to show in the up side.
  My problem is that the arrow need overlap a little over the other View (cause the backgrounds color match them), so this is why it's need to be draw after.</p>
  
  <p>I tried with a FrameLayout and letting "content" has some topMargin, but it's not working.</p>
  
  <p>I know it's can be done with AbsoluteLayout, but I'm avoiding it at all costs.</p>
  
  <p>EDIT:</p>
  
  <p>Following Josh answer, I wrote the following code.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;
  &lt;LinearLayout android:id="@+id/content"
      android:orientation="vertical" android:layout_width="wrap_content"
      android:layout_height="wrap_content" android:fadingEdgeLength="0dip"&gt;
  
      &lt;RelativeLayout android:id="@+id/header"
          android:background="@drawable/background_header" android:orientation="horizontal"
          android:layout_width="match_parent" android:layout_height="wrap_content"&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;HorizontalScrollView android:background="@drawable/background"
          android:layout_width="wrap_content" android:layout_height="wrap_content"
          android:scrollbars="none"&gt;
      &lt;/HorizontalScrollView&gt;
  &lt;/LinearLayout&gt;
  &lt;ImageView android:id="@+id/arrow_up" android:layout_above="@id/content"
      android:layout_width="wrap_content" android:layout_height="wrap_content"
      android:src="@drawable/quickcontact_arrow_up" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>But I don't know why, the arrow is not show now.</p>