Can’t resize a RelativeLayout inside a ScrollView to fill the whole screen

I have faced this problem before. Just Use android:fillViewport="true" in your scrollview and it will fill up the screen.

 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
         android:fillViewport="true" >

Leave a Comment