title: Android ScrollView causes items disappear
body: <p>I have the following layout to show a popup:</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/ppba_dimmer"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/dimming"
          android:orientation="vertical"&gt;
  
  
          &lt;LinearLayout 
              android:id="@+id/ppba_llPopup"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="100dp"
              android:layout_gravity="center"
              android:orientation="vertical" 
              android:background="@drawable/popup_bg"&gt;
  
              &lt;!-- HEADER: Titol del Popup--&gt;
              &lt;TextView
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center"
                  android:textColor="#10bcc9"
                  android:typeface="sans" 
                  android:textSize="15dip"
                  android:textStyle="bold"
                  android:padding="12dip"
                  android:text="@string/ppfa_tvTitolPopup" /&gt;
  
              &lt;!-- Linia--&gt;
              &lt;View 
                 android:background="#10bcc9" 
                 android:layout_height="2dp"
                 android:layout_marginLeft="2dip"
                 android:layout_marginRight="2dip" 
                 android:layout_width="fill_parent"/&gt;
  
              &lt;!-- Pais i Ciutat--&gt;
              &lt;TextView
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:textColor="#ffffff"
                  android:text="@string/ppfa_tvPaisCiutat" 
                  android:layout_marginLeft="5dip"
                  android:layout_marginRight="5dip"/&gt;
  
              &lt;Spinner
                  android:id="@+id/ppba_spPaisos"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="5dip"
                  android:layout_marginRight="5dip" /&gt;
  
              &lt;Spinner
                  android:id="@+id/ppba_spCiutats"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="5dip"
                  android:layout_marginRight="5dip"/&gt;
  
              ....
                          (i crop it, just because it's too long)
  
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This layout looks like as follows:</p>
  
  <p>it seems that i'm not allowed to post images, so i let you the link, <a href="http://i.stack.imgur.com/P7njC.png" rel="nofollow">here</a></p>
  
  <p>I realized that in some device screen the popup gets cropped because it's too long. So i decided to add a Scrollview like this (after the second LinearLayout, actually the popup window):</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/ppba_dimmer"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/dimming"
      android:orientation="vertical"&gt;
  
  
      &lt;LinearLayout 
          android:id="@+id/ppba_llPopup"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="100dp"
          android:layout_gravity="center"
          android:orientation="vertical" 
          android:background="@drawable/popup_bg"&gt;
  
          &lt;ScrollView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"  &gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"  &gt;
  
                  &lt;!-- HEADER: Titol del Popup--&gt;
                  &lt;TextView
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:gravity="center"
                      android:textColor="#10bcc9"
                      android:typeface="sans" 
                      android:textSize="15dip"
                      android:textStyle="bold"
                      android:padding="12dip"
                      android:text="@string/ppfa_tvTitolPopup" /&gt;
  
                  &lt;!-- Linia--&gt;
                  &lt;View 
                     android:background="#10bcc9" 
                     android:layout_height="2dp"
                     android:layout_marginLeft="2dip"
                     android:layout_marginRight="2dip" 
                     android:layout_width="fill_parent"/&gt;
  
                  &lt;!-- Pais i Ciutat--&gt;
                  &lt;TextView
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:textColor="#ffffff"
                      android:text="@string/ppfa_tvPaisCiutat" 
                      android:layout_marginLeft="5dip"
                      android:layout_marginRight="5dip"/&gt;
  
                  &lt;Spinner
                      android:id="@+id/ppba_spPaisos"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="5dip"
                      android:layout_marginRight="5dip" /&gt;
  
                  &lt;Spinner
                      android:id="@+id/ppba_spCiutats"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="5dip"
                      android:layout_marginRight="5dip"/&gt;
  
                  ...
  
              &lt;/LinearLayout&gt;
  
          &lt;/ScrollView&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And the layout looks like this:</p>
  
  <p>Image <a href="http://i.stack.imgur.com/BLpw3.png" rel="nofollow">here</a></p>
  
  <p>I've tried different "layout_width" each one of them give me weird results. I'm pretty sure i'm doing something wrong, but i'm not able to figure out what. Could you please point me in the good direction?</p>
  
  <p>Thanks!</p>