ScrollView doesn't work - Android -


i have spent time on this, , can't scrollview work on android app. i'm testing in android emulator, since don't have android device me right now. know should silly problem, can't figure out!

the xml code:

<scrollview   xmlns:android="http://schemas.android.com/apk/res/android"   android:layout_width="fill_parent"   android:layout_height="fill_parent"   xmlns:tools="http://schemas.android.com/tools"   android:fillviewport="true">      <relativelayout          android:layout_width="match_parent"         android:layout_height="wrap_content"         android:paddingbottom="@dimen/activity_vertical_margin"         android:paddingleft="@dimen/activity_horizontal_margin"         android:paddingright="@dimen/activity_horizontal_margin"         android:paddingtop="@dimen/activity_vertical_margin"         tools:context="generalclasses.mainactivity$placeholderfragment" >          <textview             android:id="@+id/textview1"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentleft="true"             android:layout_alignparenttop="true"             android:text="@string/signintextview"             android:textappearance="?android:attr/textappearancelarge" />          <edittext             android:id="@+id/useridtext"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_alignleft="@+id/usertextview"             android:layout_below="@+id/usertextview"             android:layout_margintop="25dp"             android:ems="10"             android:hint="@string/hintusuario" />          <textview             android:id="@+id/usertextview"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignleft="@+id/textview1"             android:layout_below="@+id/textview1"             android:layout_margintop="23dp"             android:text="@string/usertextview"             android:textsize="20sp" />          <button             android:id="@+id/signupherebutton"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentbottom="true"             android:layout_alignright="@+id/signinbutton"             android:text="@string/signupherebutton" />          <textview             android:id="@+id/passwordtextview"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignleft="@+id/useridtext"             android:layout_below="@+id/useridtext"             android:layout_margintop="24dp"             android:text="@string/passwordtextview"             android:textsize="20sp" />          <edittext             android:id="@+id/passwordedittext"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_alignleft="@+id/passwordtextview"             android:layout_below="@+id/passwordtextview"             android:layout_margintop="26dp"             android:ems="10"             android:hint="@string/hintsenha"             android:inputtype="textpassword" />          <textview             android:id="@+id/newheretextview"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignbaseline="@+id/signupherebutton"             android:layout_alignbottom="@+id/signupherebutton"             android:layout_alignleft="@+id/signinbutton"             android:layout_marginleft="30dp"             android:text="@string/newheretextview"             android:textsize="20sp" />          <button             android:id="@+id/signinbutton"             style="@style/appbasetheme"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_alignleft="@+id/passwordedittext"             android:layout_below="@+id/passwordedittext"             android:layout_margintop="27dp"             android:text="@string/signinbutton" />      </relativelayout>  </scrollview> 

i think happening becuase putting views inside relativelayout put them in linearlayout , set orienation vertical


Comments