[Android Studio] Aksh25:
Try wrapping all of your layout in a nested scroll view. All you have to do is to put your current layout inside in it.

<?xml version="1.0" encoding="utf-8"?>

<android.support.v4.widget.NestedScrollView

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/nestedScrollView"

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context="com.example.android.ridhwan.MainActivity"

app:layout_behavior="@string/appbar_scrolling_view_behavior">

<LinearLayout

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context="com.example.android.ridhwan.MainAct ivity"

android:orientation="vertical">

<RelativeLayout

android:layout_width="match_parent"

android:layout_height="match_parent"

android:layout_weight="1">

<ViewFlipper

android:id="@+id/viewflipper2"

android:layout_width="match_parent"

android:layout_height="match_parent">

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/main1"

android:scaleType="centerCrop" />

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/main2"

android:scaleType="centerCrop" />

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/masjid"

android:scaleType="centerCrop" />

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/main3"

android:scaleType="centerCrop" />

</ViewFlipper>

<Button

android:layout_width="match_parent"

android:layout_height="match_parent"

android:text="DUBAI"

android:textSize="40sp"

android:textColor="#ffffff"

android:id="@+id/dubaibutton"

android:layout_alignParentBottom="true"

android:layout_alignParentRight="true"

android:layout_alignParentEnd="true"

android:clickable="true"

android:background="#49000000"

/>

</RelativeLayout>

<RelativeLayout

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_weight="1">

<ViewFlipper

android:id="@+id/viewflipper3"

android:layout_width="match_parent"

android:layout_height="match_parent">

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/india1"

android:scaleType="centerCrop" />

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/india2"

android:scaleType="centerCrop" />

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/india3"

android:scaleType="centerCrop" />

<ImageView

android:layout_width="match_parent"

android:layout_height="match_parent"

android:src="@drawable/india"

android:scaleType="centerCrop" />

</ViewFlipper>

<Button

android:layout_width="match_parent"

android:layout_height="match_parent"

android:text="INDIA"

android:textSize="40sp"

android:textColor="#ffffff"

android:id="@+id/indiabutton"

android:layout_alignParentBottom="true"

android:layout_alignParentRight="true"

android:layout_alignParentEnd="true"

android:clickable="true"

android:background="#49000000"

/>

</RelativeLayout>

</LinearLayout>

</android.support.v4.widget.NestedScrollView>

That should work :)