How to Use ScrollView in Android Studio Episode 010 Urdu Hindi

How to Use ScrollView in Android Studio Episode 010 Urdu Hindi

How to Use ScrollView in Android Studio Episode #010 Urdu Hindi

Step1:

Start Android Studio Project

Step2:

Open XML file > Add this code

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

           <TextView
               android:layout_width="match_parent"
               android:layout_height="wrap_content"
               android:textSize="30dp"
               android:text=""/>

        </LinearLayout>
    </ScrollView>
</RelativeLayout>
How to Use ScrollView in Android Studio