<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/b"
        android:orientation="vertical">

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

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:paddingStart="16dp"
            android:paddingEnd="16dp">

            <View
                android:id="@+id/sb"
                android:layout_width="0dp"
                android:layout_height="32dp"
                android:layout_marginEnd="16dp"
                android:background="@drawable/bg_skeleton_radius_40"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toStartOf="@id/ic1"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <View
                android:id="@+id/ic1"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_gravity="center_vertical"
                android:layout_marginEnd="16dp"
                android:background="@drawable/bg_skeleton_radius_4"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toStartOf="@id/ic2"
                app:layout_constraintTop_toTopOf="parent" />

            <View
                android:id="@+id/ic2"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_gravity="center_vertical"
                android:background="@drawable/bg_skeleton_radius_4"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

        </androidx.constraintlayout.widget.ConstraintLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="28dp"
            android:gravity="bottom"
            android:paddingTop="8dp">

            <View
                android:layout_width="40dp"
                android:layout_height="20dp"
                android:layout_marginStart="16dp"
                android:background="@drawable/bg_skeleton_radius_4" />

            <View
                android:layout_width="32dp"
                android:layout_height="16dp"
                android:layout_marginStart="24dp"
                android:background="@drawable/bg_skeleton_radius_4" />

            <View
                android:layout_width="64dp"
                android:layout_height="16dp"
                android:layout_marginStart="24dp"
                android:background="@drawable/bg_skeleton_radius_4" />

            <View
                android:layout_width="32dp"
                android:layout_height="16dp"
                android:layout_marginStart="24dp"
                android:background="@drawable/bg_skeleton_radius_4" />

            <View
                android:layout_width="32dp"
                android:layout_height="16dp"
                android:layout_marginStart="24dp"
                android:background="@drawable/bg_skeleton_radius_4" />

            <View
                android:layout_width="32dp"
                android:layout_height="16dp"
                android:layout_marginStart="24dp"
                android:background="@drawable/bg_skeleton_radius_4" />

            <View
                android:layout_width="64dp"
                android:layout_height="16dp"
                android:layout_marginStart="24dp"
                android:background="@drawable/bg_skeleton_radius_4" />

        </LinearLayout>

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="29dp"
            android:layout_marginTop="7dp"
            android:src="@drawable/ic_home_tab_indicator_skeleton" />

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:paddingHorizontal="16dp"
            android:paddingVertical="8dp">

            <View
                android:id="@+id/square"
                android:layout_width="0dp"
                android:layout_height="140dp"
                android:layout_marginEnd="8dp"
                android:background="@drawable/bg_skeleton_radius_10"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toStartOf="@id/rect1"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <View
                android:id="@+id/rect1"
                android:layout_width="0dp"
                android:layout_height="66dp"
                android:background="@drawable/bg_skeleton_radius_10"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0"
                app:layout_constraintHorizontal_chainStyle="packed"
                app:layout_constraintStart_toEndOf="@id/square"
                app:layout_constraintTop_toTopOf="@id/square" />

            <View
                android:id="@+id/rect2"
                android:layout_width="0dp"
                android:layout_height="66dp"
                android:layout_marginTop="8dp"
                android:background="@drawable/bg_skeleton_radius_10"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0"
                app:layout_constraintHorizontal_chainStyle="packed"
                app:layout_constraintStart_toStartOf="@id/rect1"
                app:layout_constraintTop_toBottomOf="@id/rect1" />

        </androidx.constraintlayout.widget.ConstraintLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="87dp"
            android:orientation="horizontal"
            android:paddingHorizontal="18dp"
            android:paddingVertical="16dp">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:background="@drawable/bg_skeleton_radius_8" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_marginStart="26dp"
                android:layout_weight="1"
                android:background="@drawable/bg_skeleton_radius_8" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_marginStart="26dp"
                android:layout_weight="1"
                android:background="@drawable/bg_skeleton_radius_8" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_marginStart="26dp"
                android:layout_weight="1"
                android:background="@drawable/bg_skeleton_radius_8" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_marginStart="26dp"
                android:layout_weight="1"
                android:background="@drawable/bg_skeleton_radius_8" />

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingTop="16dp"
            android:paddingBottom="16dp">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="18dp">

                <View
                    android:layout_width="54dp"
                    android:layout_height="18dp"
                    android:layout_marginStart="16dp"
                    android:background="@drawable/bg_skeleton_radius_4" />

                <View
                    android:layout_width="32dp"
                    android:layout_height="12dp"
                    android:layout_alignParentEnd="true"
                    android:layout_marginEnd="16dp"
                    android:background="@drawable/bg_skeleton_radius_4" />

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp">

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginTop="36dp"
                    android:background="@drawable/bg_skeleton_radius_4" />

                <HorizontalScrollView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:scrollbars="none">

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="8dp"
                        android:orientation="horizontal">

                        <include layout="@layout/fragment_main_skeleton_item_simple_game" />

                        <include layout="@layout/fragment_main_skeleton_item_simple_game" />

                        <include layout="@layout/fragment_main_skeleton_item_simple_game" />

                        <include layout="@layout/fragment_main_skeleton_item_simple_game" />

                        <include layout="@layout/fragment_main_skeleton_item_simple_game" />

                        <include layout="@layout/fragment_main_skeleton_item_simple_game" />

                        <include layout="@layout/fragment_main_skeleton_item_simple_game" />

                    </LinearLayout>

                </HorizontalScrollView>

            </RelativeLayout>

        </LinearLayout>

        <include layout="@layout/fragment_main_skeleton_item_game" />

        <include layout="@layout/fragment_main_skeleton_item_game" />

        <include layout="@layout/fragment_main_skeleton_item_game" />

    </LinearLayout>

    <LinearLayout
        android:id="@+id/b"
        android:layout_width="match_parent"
        android:layout_height="54dp"
        android:layout_alignParentBottom="true"
        android:orientation="horizontal">

        <include
            layout="@layout/fragment_main_skeleton_item_bottom_tab"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1" />

        <include
            layout="@layout/fragment_main_skeleton_item_bottom_tab"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1" />

        <include
            layout="@layout/fragment_main_skeleton_item_bottom_tab"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1" />

        <include
            layout="@layout/fragment_main_skeleton_item_bottom_tab"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1" />

        <include
            layout="@layout/fragment_main_skeleton_item_bottom_tab"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1" />

    </LinearLayout>
</RelativeLayout>