ScrollView not works on Relative Layout
<p>I am trying to make my layout Scrollable by adding ScrollView as an parent for my Relative Layout.But my layout not scrolled.I have added the fillport property to true.</p>

<p>Here is my xml file:</p>

<pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/scrollView2"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fillViewport="true"

            &gt;

    &lt;RelativeLayout 

        android:layout_width="match_parent"
        android:layout_height="wrap_content"

        &gt;

        &lt;TextView
            android:id="@+id/repActivityTitle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:ellipsize="middle"
            android:textSize="18sp"
            android:background="@android:color/darker_gray"
            android:text="@string/representativeTitle" /&gt;

        &lt;TextView
            android:id="@+id/repStreet"
            android:layout_width="100dip"
            android:layout_height="wrap_content"
            android:layout_alignTop="@+id/repImage"
            android:layout_marginTop="14sp"
            android:layout_toRightOf="@+id/repImage"
            android:layout_margin="3sp"
            android:text="@string/repStreet" /&gt;

        &lt;TextView
            android:id="@+id/repState"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/repStreet"
            android:layout_toRightOf="@+id/repImage"
            android:text="@string/repState" /&gt;

        &lt;TextView
            android:id="@+id/repCountry"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/repState"
            android:layout_below="@+id/repState"
            android:text="@string/repCountry" /&gt;

        &lt;com.google.android.maps.MapView
            android:id="@+id/repMap"
            android:layout_width="100dip"
            android:layout_height="100dip"
            android:paddingTop="2dp"
             android:layout_marginTop="2dp"
            android:layout_alignParentRight="true"
            android:layout_alignTop="@+id/repImage"
            android:apiKey="0lsQmtr2D241pSL53j0vQ2lYUs4_ZIWkIHyHAKw" &gt;
        &lt;/com.google.android.maps.MapView&gt;

        &lt;View
            android:id="@+id/firstHorizontalLine"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/repMap"
            android:layout_marginTop="54dp"
            android:background="@android:color/black" /&gt;

        &lt;TextView
            android:id="@+id/issues2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/issues1"
            android:layout_centerVertical="true"
            android:text="@string/issues2" /&gt;

        &lt;View
            android:id="@+id/secondHorizontalLine"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/accomplishments"
            android:background="@android:color/black" /&gt;

        &lt;TextView
            android:id="@+id/issues"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_alignBottom="@+id/firstHorizontalLine"
            android:layout_alignRight="@+id/repStreet"
            android:text="@string/issues" /&gt;

        &lt;TextView
            android:id="@+id/accomplish2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/accomplish1"
            android:layout_below="@+id/accomplish1"
            android:layout_marginTop="18dp"
            android:text="@string/accomplishments2" /&gt;

        &lt;TextView
            android:id="@+id/promises"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/issues"
            android:gravity="center"
            android:layout_below="@+id/accomplish2"
            android:text="@string/promises" /&gt;

        &lt;View
            android:id="@+id/thirdHorizontalLine"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="@android:color/black"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/promises" /&gt;

        &lt;TextView
            android:id="@+id/accomplishments"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/issues2"
            android:gravity="center"
            android:layout_toLeftOf="@+id/repMap"
            android:text="@string/accomplishments" /&gt;

        &lt;TextView
            android:id="@+id/accomplish1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/secondHorizontalLine"
            android:layout_marginTop="21dp"
            android:text="@string/accomplishments1" /&gt;

        &lt;TextView
            android:id="@+id/issues1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/issues2"
            android:layout_alignParentLeft="true"
            android:layout_marginBottom="14dp"
            android:text="@string/issues1" /&gt;




        &lt;ImageView
            android:id="@+id/repImage"
            android:layout_width="100dip"
            android:layout_height="100dip"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/repActivityTitle"
            android:contentDescription="@string/representativeImage"
            android:paddingTop="2dp"
            android:layout_marginTop="2dp"
            android:scaleType="centerCrop"
            android:src="@drawable/icon" /&gt;

        &lt;TextView
            android:id="@+id/promise1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/thirdHorizontalLine"
            android:layout_marginTop="19dp"
            android:text="@string/promises1" /&gt;

        &lt;TextView
            android:id="@+id/promise2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/promise1"
            android:text="@string/promises2" /&gt;

    &lt;/RelativeLayout&gt;

    &lt;/ScrollView&gt;
</code></pre>

<p>Here I have used the ScrollView but the full content of layout is not as showing.As scrolls not work here.</p>
