Android Scrollview Example

We can use this android scrollview example for layouts. By using android scrollview we can add any number of elements to layouts. when the element reaches the down part of the screen , by using scrollview example we can see the remaining elements in the screen.
Example for Android Scrollview :-

[sourcecode language="xml"]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="110px">
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_width="wrap_content"
android:layout_height="30px"
android:orientation="vertical">
<Button android:text="1"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button android:text="2"
android:id="@+id/Button02"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button android:text="3"
android:id="@+id/Button03"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>
</LinearLayout>
[/sourcecode]

The output will looks like
scrollviewexample1scrollviewexample2

Comments

Paul, Textview will be

Paul,
Textview will be visible below to scrollview .. B'coz we set the height to scrollview as 110px.