<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginLeft="18dp"
                android:layout_marginRight="18dp">

  <android.support.v4.view.ViewPager android:id="@+id/pager"
                                     android:layout_width="match_parent"
                                     android:layout_height="match_parent"/>

</RelativeLayout>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

  <android.support.v4.view.ViewPager android:id="@+id/pager"
                                     android:layout_width="match_parent"
                                     android:layout_height="match_parent"/>

</RelativeLayout>

Remove left and right margin in root view in home activity
Remove left and right margin in root view in home activity
