Create an application for demonstration of Scroll view in android

activity_main.xml

<?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="match_parent"
>


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

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Scroll..............."/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="April Fool:)"
android:layout_gravity="center_horizontal"
android:layout_marginTop="500pt"
/>

</LinearLayout>
</ScrollView>

Output


now scroll