title: Scroll View not showing all the views in android
body: <p>I am unable to see the top most views under ScrollView. 
  I had placed the scrollview under Relative layout. ScrollView has a child layout i.e. Linear layout which has some series of buttons.
  Problem is that i am unable to see the top most views which are present in the ScrollView.</p>
  
  <p>Below is the layout xml code.</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:background="#217d27"
      android:orientation="vertical" &gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="5dp" &gt;
  
          &lt;Button
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_centerVertical="true"
              android:layout_marginLeft="10dp"
              android:onClick="backPressed"
              android:text="Back"
              android:textColor="#000" /&gt;
  
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_centerVertical="true"
              android:gravity="center"
              android:text="Heading Text"
              android:textColor="#fff"
              android:textSize="20sp" /&gt;
  
          &lt;Button
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_centerVertical="true"
              android:layout_marginRight="10dp"
              android:onClick="homeButtonClicked"
              android:text="Home"
              android:textColor="#000" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:fadingEdge="none"
          android:fillViewport="true" &gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:background="#fff"
              android:orientation="vertical" &gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:text="Button 1"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 2"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 3"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 4"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 5"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 6"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 7"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 8"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 9"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 10"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 11"
                  android:textColor="@color/black" /&gt;
  
              &lt;Button
                  android:layout_width="200dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:text="Button 12"
                  android:textColor="@color/black" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Please see the screen shot for reference.</p>
  
  <p><img src="https://i.stack.imgur.com/dCAJn.png" alt="Screen shot"></p>