Reputation: 1
I Solved the problem with this link. I needed to create seperate activitoes with seperate java and xml files. The link below did. it. Thanks everyone for your help.
http://www.learn2crack.com/2013/09/android-switching-between-activities-example.html
Upvotes: 0
Views: 507
Reputation: 4013
You set the height
of the ScrollView
to 200dp
, try replacing with this:
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/scrollView"
android:fillViewport="true">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
...
</LinearLayout>
</ScrollView>
Upvotes: 0
Reputation: 3476
You need to remove this line:
android:layout_height="200dp"
Replace it with this:
android:layout_height="match_parent"
You're currently restricting your scrollable space to only 200dp with that line.
Also, as TGMCians pointed out, you need to set in your TextView:
android:layout_height="wrap_content"
Instead of explicitly setting a value.
Upvotes: 1