Vertical scrolling layout in android studio
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:id="@+id/layout"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:background="#c1c1c1"
android:layout_height="300dp"
android:src="@drawable/a"/>
<ImageView
android:layout_width="match_parent"
android:background="#c1c1c1"
android:layout_height="300dp"
android:layout_marginTop="30dp"
android:src="@drawable/b"/>
<ImageView
android:layout_width="match_parent"
android:background="#c1c1c1"
android:layout_height="300dp"
android:layout_marginTop="30dp"
android:src="@drawable/c"/>
<ImageView
android:layout_width="match_parent"
android:background="#c1c1c1"
android:layout_height="300dp"
android:layout_marginTop="30dp"
android:src="@drawable/d"/>
<ImageView
android:layout_width="match_parent"
android:background="#c1c1c1"
android:layout_height="300dp"
android:layout_marginTop="30dp"
android:src="@drawable/e"/>
</LinearLayout>
</ScrollView>
</LinearLayout>