In order to add a ScrollView into your Android app layout, we have to first edit the XML file. Nested inside of your ScrollView tags, you have to have a Linear Layout. It should look like this.
<ScrollView
android:layout_width="fill_parent"
android:layout_height="300px">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="Wrap_Content"
>
Add whatever you want to scroll in here
</LinearLayout>
</ScrollView>
Click here to download my World War II Trivia iPhone app CODENAME:Trivia WW2
No comments:
Post a Comment