<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/rootContainer"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background_white"
    android:overScrollMode="never"
    android:scrollbars="none">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <include
            android:id="@+id/historyHeadContainer"
            layout="@layout/layout_subject_head"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <com.gh.gamecenter.common.view.LimitHeightLinearLayout
            android:id="@+id/history_flex_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/background_white"
            app:layout_constraintTop_toBottomOf="@+id/historyHeadContainer">

            <com.google.android.flexbox.FlexboxLayout
                android:id="@+id/history_flex"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="16dp"
                app:dividerDrawable="@drawable/shape_flexbox_divider_w8_h8"
                app:flexWrap="wrap"
                app:showDivider="middle" />
        </com.gh.gamecenter.common.view.LimitHeightLinearLayout>

        <include
            android:id="@+id/hotTagHeadContainer"
            layout="@layout/layout_subject_head"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_marginTop="16dp"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toBottomOf="@id/history_flex_container" />

        <com.gh.gamecenter.common.view.LimitHeightLinearLayout
            android:id="@+id/hot_tag_flex_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/background_white"
            app:layout_constraintTop_toBottomOf="@id/hotTagHeadContainer">

            <com.google.android.flexbox.FlexboxLayout
                android:id="@+id/hot_tag_flex"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="16dp"
                app:dividerDrawable="@drawable/shape_flexbox_divider_w8_h8"
                app:flexWrap="wrap"
                app:showDivider="middle" />
        </com.gh.gamecenter.common.view.LimitHeightLinearLayout>

        <include
            android:id="@+id/hotHeadContainer"
            layout="@layout/layout_subject_head"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_marginTop="16dp"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toBottomOf="@id/hot_tag_flex_container" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/hot_list"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:overScrollMode="never"
            app:layout_constrainedHeight="true"
            app:layout_constraintTop_toBottomOf="@+id/hotHeadContainer" />

        <com.google.android.material.tabs.TabLayout
            android:id="@+id/rankTabLayout"
            android:layout_width="match_parent"
            android:layout_height="66dp"
            android:paddingTop="16dp"
            app:tabMaxWidth="0dp"
            app:tabMinWidth="0dp"
            app:tabPaddingStart="8dp"
            app:tabPaddingEnd="8dp"
            app:tabIndicatorHeight="0dp"
            app:tabMode="scrollable"
            app:tabIndicator="@null"
            app:tabRippleColor="@color/transparent"
            app:layout_constraintTop_toBottomOf="@+id/hot_list"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent" />

        <com.gh.gamecenter.common.view.TabIndicatorView
            android:id="@+id/rankTabIndicator"
            android:layout_width="match_parent"
            android:layout_height="@dimen/default_tab_indicator_height"
            android:layout_marginBottom="8dp"
            app:disableIndicatorScaling="true"
            app:layout_constraintBottom_toBottomOf="@+id/rankTabLayout"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent" />

        <androidx.viewpager.widget.ViewPager
            android:id="@+id/rankViewPager"
            android:layout_width="0dp"
            android:layout_height="416dp"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:layout_marginBottom="48dp"
            android:clipToPadding="false"
            android:overScrollMode="never"
            app:layout_constraintTop_toBottomOf="@id/rankTabLayout"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
