Android ScrollView not srcoll inside LinearLayout
<p>I have RelativeLayout inside SrcollView. That ScrollView will be an child of LinearLayout. In RelativeLayout I added views programmatically. But ScrollView is not scrolling.
startActivityCenterLayout - place between AutocompleteTextView's container and Button's container.
How I can resolve it?</p>

<p><a href="https://i.stack.imgur.com/vYNjG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vYNjG.jpg" alt="enter image description here"></a></p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;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:id="@+id/startActivityRootLayout"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="10dp"
    android:background="@color/dark_cyan"
    tools:context="com.geodevteam.geopay.project.activity.StartActivity"&gt;

    &lt;LinearLayout
        android:orientation="vertical"
        android:id="@+id/startActivityTopLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:background="@color/dark_cyan"&gt;

        &lt;ImageView
            android:id="@+id/startActivityLogoImageView"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="10dp"
            android:src="@mipmap/ico"/&gt;

        &lt;TextView
            android:id="@+id/startActivityLogoTextView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="10dp"
            style="@style/ApplicationNameTextView"
            android:text="@string/application_title"/&gt;

        &lt;AutoCompleteTextView
            android:id="@+id/startActivityAutocompleteTextView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="25dp"
            android:layout_marginLeft="30dp"
            android:layout_marginRight="30dp"
            style="@style/AutocompleteTextViewTextColor"
            android:hint="@string/start_to_input_name"/&gt;


    &lt;/LinearLayout&gt;

    &lt;LinearLayout
        android:id="@+id/startActivityCenterLayout"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/startActivityTopLayout"
        android:paddingBottom="10dp"
        android:background="@color/dark_cyan"&gt;

        &lt;ScrollView
            android:id="@+id/startActivityCenterLayoutScrollView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fillViewport="true"&gt;

            &lt;RelativeLayout
                android:id="@+id/cardsRootLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"&gt;

            &lt;/RelativeLayout&gt;

        &lt;/ScrollView&gt;

    &lt;/LinearLayout&gt;

    &lt;LinearLayout
        android:orientation="vertical"
        android:id="@+id/startActivityBottomLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@color/dark_cyan"&gt;

        &lt;Button
            android:id="@+id/startActivitySocialsButton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:background="@drawable/login_by_mail_button"
            style="@style/LoginByMailButton"
            android:text="@string/login_sign_using_social" /&gt;

        &lt;Button
            android:id="@+id/startActivityEmailButton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="10dp"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:background="@drawable/login_by_mail_button"
            style="@style/LoginByMailButton"
            android:text="@string/login_using_mail" /&gt;

    &lt;/LinearLayout&gt;

&lt;/RelativeLayout&gt;
</code></pre>