How to Add a ScrollView to XML file

ScrollView was addedin API Level 1
Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. A ScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects. A child that is often used is a LinearLayout in a vertical orientation, presenting a vertical array of top-level items that the user can scroll through.

1. Create an Android project, if you don't already have one.

2. In the main.xml file, replace ALL text with the below code.
This is add a ScrollView, with a Linear layout.

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
>

<LinearLayout
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match__parent"  >

</LinearLayout>

</ScrollView>

3. Add your other widgets right before the </LinearLayout> tag.

4. Compile and run!

Resources:
http://developer.android.com/reference/android/widget/ScrollView.html