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

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/game_video_toolbar_background"
        android:orientation="vertical">

        <com.gh.gamecenter.common.view.StatusBarView
            android:id="@+id/status_bar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/normal_toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:layout_below="@id/status_bar"
            android:background="@android:color/transparent"
            android:popupTheme="@style/ThemeOverlay.AppCompat.Light" />

        <TextView
            android:id="@+id/normal_title"
            android:layout_width="wrap_content"
            android:layout_height="?attr/actionBarSize"
            android:layout_below="@id/status_bar"
            android:layout_centerHorizontal="true"
            android:gravity="center"
            android:textColor="@color/white"
            android:textSize="16sp"
            android:textStyle="bold" />

    </RelativeLayout>

    <androidx.coordinatorlayout.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <com.google.android.material.appbar.AppBarLayout
            android:id="@+id/appbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            app:layout_behavior="com.gh.gamecenter.common.view.FixAppBarLayoutBehavior">

            <androidx.constraintlayout.widget.ConstraintLayout
                android:id="@+id/head_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/game_video_head_background"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="20dp"
                android:paddingTop="8dp"
                android:paddingRight="20dp"
                android:paddingBottom="16dp"
                app:layout_scrollFlags="scroll|enterAlwaysCollapsed">

                <com.gh.gamecenter.feature.view.GameIconView
                    android:id="@+id/game_icon"
                    android:layout_width="40dp"
                    android:layout_height="40dp"
                    app:layout_constraintLeft_toLeftOf="parent"
                    app:layout_constraintTop_toTopOf="parent" />

                <TextView
                    android:id="@+id/game_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="12dp"
                    android:textColor="@color/white"
                    android:textSize="16sp"
                    app:layout_constraintBottom_toBottomOf="@id/game_icon"
                    app:layout_constraintLeft_toRightOf="@id/game_icon"
                    app:layout_constraintTop_toTopOf="@id/game_icon"
                    tools:text="少年三国志" />

                <TextView
                    android:id="@+id/video_count_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="25dp"
                    android:text="视频"
                    android:textColor="@color/content"
                    android:textSize="12sp"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintLeft_toLeftOf="parent"
                    app:layout_constraintTop_toBottomOf="@id/game_icon" />

                <TextView
                    android:id="@+id/video_count"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="5dp"
                    android:textColor="@color/white"
                    android:textSize="14sp"
                    android:textStyle="bold"
                    app:layout_constraintBottom_toBottomOf="@id/video_count_name"
                    app:layout_constraintLeft_toRightOf="@id/video_count_name"
                    app:layout_constraintTop_toTopOf="@id/video_count_name"
                    tools:text="31" />

                <TextView
                    android:id="@+id/like_count_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="16dp"
                    android:text="获赞"
                    android:textColor="@color/content"
                    android:textSize="12sp"
                    app:layout_constraintBottom_toBottomOf="@id/video_count"
                    app:layout_constraintLeft_toRightOf="@id/video_count"
                    app:layout_constraintTop_toTopOf="@id/video_count" />

                <TextView
                    android:id="@+id/like_count"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="5dp"
                    android:textColor="@color/white"
                    android:textSize="14sp"
                    android:textStyle="bold"
                    app:layout_constraintBottom_toBottomOf="@id/like_count_name"
                    app:layout_constraintLeft_toRightOf="@id/like_count_name"
                    app:layout_constraintTop_toTopOf="@id/like_count_name"
                    tools:text="3.1W" />

            </androidx.constraintlayout.widget.ConstraintLayout>

            <RelativeLayout
                android:id="@+id/tab_container"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:background="@color/ui_surface">

                <com.gh.gamecenter.common.view.TabIndicatorView
                    android:id="@+id/tab_indicator"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/default_tab_indicator_height"
                    android:layout_alignParentBottom="true" />

                <com.google.android.material.tabs.TabLayout
                    android:id="@+id/tab_layout"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/tab_layout_height"
                    app:tabIndicatorHeight="0dp"
                    app:tabMode="fixed"
                    app:tabSelectedTextColor="@color/text_theme"
                    app:tabIndicator="@null"
                    app:tabTextAppearance="@style/TabLayoutTextAppearance" />

            </RelativeLayout>
        </com.google.android.material.appbar.AppBarLayout>

        <com.lightgame.view.NoScrollableViewPager
            android:id="@+id/viewpager"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:overScrollMode="never"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />

    </androidx.coordinatorlayout.widget.CoordinatorLayout>
</LinearLayout>

