<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    android:maxHeight="400dp"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/fragment_tab_container"
        android:layout_width="match_parent"
        android:layout_height="@dimen/tab_layout_height"
        android:background="@color/ui_surface">

        <com.gh.gamecenter.common.view.TabIndicatorView
            android:id="@+id/fragment_tab_indicator"
            android:layout_width="match_parent"
            android:layout_height="@dimen/default_tab_indicator_height"
            app:disableIndicatorScaling="true"
            app:layout_constraintBottom_toBottomOf="parent" />

        <com.google.android.material.tabs.TabLayout
            android:id="@+id/fragment_tab_layout"
            android:layout_width="0dp"
            android:layout_height="@dimen/tab_layout_height"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toStartOf="@id/orderSfv"
            app:tabPaddingEnd="16dp"
            app:tabPaddingStart="16dp"
            app:tabIndicator="@null"
            app:tabMode="scrollable"
            app:tabMaxWidth="0dp"
            app:tabMinWidth="0dp"
            app:tabRippleColor="@color/transparent"
            app:tabTextAppearance="@style/TabLayoutTextAppearance" />

        <com.gh.gamecenter.common.view.SegmentedFilterView
            android:id="@+id/orderSfv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginRight="16dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:containerBackground="@drawable/button_round_f5f5f5"
            app:containerPadding="1dp"
            app:indicatorBackground="@drawable/bg_game_collection_sfv_indicator"
            app:sfv_itemHeight="24dp"
            app:sfv_itemWidth="36dp"
            app:sfv_textCheckedColor="@color/text_secondary"
            app:sfv_textDefaultColor="@color/text_tertiary"
            app:sfv_textSize="10" />

    </androidx.constraintlayout.widget.ConstraintLayout>

    <View
        android:id="@+id/dividerLine"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:background="@color/ui_divider"
        android:visibility="gone" />

    <com.lightgame.view.NoScrollableViewPager
        android:id="@+id/fragment_view_pager"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

</LinearLayout>