<?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">

    <View
        android:id="@+id/v_toolbar_background"
        android:layout_width="0dp"
        android:layout_height="48dp"
        android:background="@color/ui_surface"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <View
        android:id="@+id/v_back"
        android:layout_width="48dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="@id/v_toolbar_background"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@id/v_toolbar_background" />

    <ImageView
        android:id="@+id/iv_back"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_bar_back"
        app:layout_constraintBottom_toBottomOf="@id/v_back"
        app:layout_constraintEnd_toEndOf="@id/v_back"
        app:layout_constraintStart_toStartOf="@id/v_back"
        app:layout_constraintTop_toTopOf="@id/v_back" />

    <TextView
        style="@style/toolbar_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/my_game"
        android:textColor="@color/text_primary"
        android:textSize="16sp"
        app:layout_constraintBottom_toBottomOf="@id/v_toolbar_background"
        app:layout_constraintEnd_toEndOf="@id/v_toolbar_background"
        app:layout_constraintStart_toStartOf="@id/v_toolbar_background"
        app:layout_constraintTop_toTopOf="@id/v_toolbar_background" />

    <View
        android:id="@+id/v_more"
        android:layout_width="48dp"
        android:layout_height="48dp"
        app:layout_constraintBottom_toBottomOf="@id/v_toolbar_background"
        app:layout_constraintEnd_toEndOf="@id/v_toolbar_background"
        app:layout_constraintTop_toTopOf="@id/v_toolbar_background" />

    <ImageView
        android:id="@+id/iv_more"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="@id/v_more"
        app:layout_constraintEnd_toEndOf="@id/v_more"
        app:layout_constraintStart_toStartOf="@id/v_more"
        app:layout_constraintTop_toTopOf="@id/v_more"
        app:srcCompat="@drawable/ic_menu_more" />

    <androidx.constraintlayout.widget.Group
        android:id="@+id/g_more"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:constraint_referenced_ids="v_more,iv_more" />

    <View
        android:id="@+id/v_game_collection"
        android:layout_width="48dp"
        android:layout_height="48dp"
        app:layout_constraintBottom_toBottomOf="@id/v_toolbar_background"
        app:layout_constraintEnd_toStartOf="@id/v_more"
        app:layout_constraintTop_toTopOf="@id/v_toolbar_background" />

    <ImageView
        android:id="@+id/iv_game_collection"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_create_game_collection"
        app:layout_constraintBottom_toBottomOf="@id/v_game_collection"
        app:layout_constraintEnd_toEndOf="@id/v_game_collection"
        app:layout_constraintStart_toStartOf="@id/v_game_collection"
        app:layout_constraintTop_toTopOf="@id/v_game_collection" />

    <androidx.constraintlayout.widget.Group
        android:id="@+id/g_game_collection"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:constraint_referenced_ids="iv_game_collection,iv_game_collection" />

    <TextView
        android:id="@+id/tv_cancel"
        android:layout_width="60dp"
        android:layout_height="0dp"
        android:gravity="center"
        android:text="@string/cancel"
        android:textColor="@color/text_theme"
        android:textSize="14sp"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="@id/v_toolbar_background"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@id/v_toolbar_background" />

    <com.google.android.material.tabs.TabLayout
        android:id="@+id/activity_tab_layout"
        android:layout_width="0dp"
        android:layout_height="45dp"
        android:background="@color/ui_surface"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/v_toolbar_background"
        app:tabIndicator="@null"
        app:tabTextAppearance="@style/TabLayoutTextAppearance" />

    <com.gh.gamecenter.common.view.TabIndicatorView
        android:id="@+id/activity_tab_indicator"
        android:layout_width="0dp"
        android:layout_height="@dimen/default_tab_indicator_height"
        app:layout_constraintBottom_toBottomOf="@id/activity_tab_layout"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <View
        android:id="@+id/v_line"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:background="@color/ui_divider"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/activity_tab_layout" />

    <com.lightgame.view.NoScrollableViewPager
        android:id="@+id/activity_view_pager"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/v_line" />
</androidx.constraintlayout.widget.ConstraintLayout>