<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/ui_surface"
    android:focusable="true"
    android:focusableInTouchMode="true">

    <include
        android:id="@+id/reuseToolbar"
        layout="@layout/reuse_toolbar"
        android:layout_width="0dp"
        android:layout_height="48dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <include
        android:id="@+id/searchBar"
        layout="@layout/layout_search_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/reuseToolbar"
        app:layout_constraintEnd_toEndOf="parent" />

    <TextView
        android:id="@+id/tipTv"
        android:layout_width="0dp"
        android:layout_height="40dp"
        android:gravity="center"
        android:background="@color/ui_background"
        android:textColor="@color/text_secondary"
        android:textSize="12sp"
        android:text="@string/game_detail_cloud_archive_tip"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/searchBar"
        app:layout_constraintEnd_toEndOf="parent" />

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

    <FrameLayout
        android:id="@+id/contentFragment"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginTop="8dp"
        app:layout_constraintBottom_toTopOf="@+id/divider"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/orderSfv" />

    <View
        android:id="@+id/divider"
        android:layout_width="0dp"
        android:layout_height="@dimen/divider_1px"
        android:background="@color/ui_divider"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintBottom_toTopOf="@+id/archiveManageTv"
        app:layout_constraintEnd_toEndOf="parent" />

    <TextView
        android:id="@+id/archiveManageTv"
        android:layout_width="wrap_content"
        android:layout_height="56dp"
        android:drawablePadding="8dp"
        android:gravity="center"
        android:text="@string/game_detail_cloud_archive_manage"
        android:textColor="@color/text_tertiary"
        android:textSize="@dimen/body_text_size"
        app:drawableEndCompat="@drawable/ic_round_arrow_right"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>