Get Your 100% Free IQ Test Android App
How to add scroll to any activity in Android Studio?

How to add scroll to any activity in Android Studio?

Error free guide

Please, note that ScrollView may only contain one direct child. 
Go to any activity_of_your_choice.xml file and wrap your main layout with ScrollView tag like this: 



<?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 and other stuff -->

    </LinearLayout>
</ScrollView>