Friday, April 15, 2011

Add a ScrollView to an Android app layout

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