<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

    <android.support.design.widget.TabLayout
        android:id="@+id/tabLayout"
        android:layout_width="504dp"
        android:layout_height="48dp"
        android:background="#ffecb3"
        />

    <android.support.v4.view.ViewPager
        android:id="@+id/viewPager"
        android:layout_width="504dp"
        android:layout_height="592dp"
        app:layout_constraintTop_toBottomOf="@id/tabLayout" />

</android.support.constraint.ConstraintLayout>