title: Child view height is zero inside ScrollView
body: <p>I want to have a transparent view behind the LinearLayout which can consume click events, but only those events that were not consumed by LinearLayout children, so I use the following layout xml for this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;ScrollView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:fillViewport="true"&gt;
  
          &lt;FrameLayout
              android:id="@+id/content"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;View
                  android:id="@+id/test_view"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="vertical"&gt;
                      ....
              &lt;/LinearLayout&gt;
          &lt;/FrameLayout&gt;
      &lt;/ScrollView&gt;
  </code></pre>
  
  <p>The problem (<b>when content is long enough to not fit in a screen</b>): </p>
  
  <p>on android 2.3 view (id="test_view") has a zero height but on android 4.2 it has height as big as its parent FrameLayout.</p>
  
  <p>Tried to add dynamically this view through addView in code but not working, replaced FrameLayout with RelativeLayout - the same problem. </p>
  
  <p>It works only with concrete height value (for example, 20dp), but I want this view to be as big as its parent. Please, help to resolve this problem.</p>