<?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:background="@color/color_f7f8f9"
    android:orientation="vertical">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:background="@color/white"
        android:layout_height="@dimen/dp_80">

        <de.hdodenhof.circleimageview.CircleImageView
            android:id="@+id/iv_avatar"
            android:layout_width="@dimen/dp_32"
            android:layout_height="@dimen/dp_32"
            android:layout_marginLeft="@dimen/dp_20"
            android:layout_marginBottom="@dimen/dp_5"
            android:src="@drawable/icon_student_default_head"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toLeftOf="parent" />

        <TextView
            android:id="@+id/tv_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/dp_10"
            android:layout_marginBottom="@dimen/dp_9"
            android:text="--"
            android:textColor="@color/color_333333"
            android:textSize="@dimen/sp_18"
            app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
            app:layout_constraintLeft_toRightOf="@+id/iv_avatar"
            app:layout_constraintTop_toTopOf="@+id/iv_avatar" />

        <ImageView
            android:id="@+id/im_message"
            android:layout_width="@dimen/dp_33"
            android:layout_height="@dimen/dp_33"
            android:layout_marginRight="@dimen/dp_17"
            android:padding="@dimen/dp_5"
            android:src="@drawable/icon_top_message"
            app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="@+id/iv_avatar" />

        <View
            android:id="@+id/view_unread_message"
            android:layout_width="@dimen/dp_7"
            android:layout_height="@dimen/dp_7"
            android:layout_marginTop="5dp"
            android:layout_marginRight="5dp"
            android:background="@drawable/bg_red_ovil"
            android:visibility="gone"
            app:layout_constraintRight_toRightOf="@+id/im_message"
            app:layout_constraintTop_toTopOf="@+id/im_message"
            tools:visibility="visible" />
    </androidx.constraintlayout.widget.ConstraintLayout>

    <com.scwang.smart.refresh.layout.SmartRefreshLayout
        android:id="@+id/refreshLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.scwang.smart.refresh.header.ClassicsHeader
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <androidx.core.widget.NestedScrollView
            android:id="@+id/scroll_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scrollbars="none">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">


                <com.youth.banner.Banner
                    android:id="@+id/banner"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_132"
                    android:layout_marginLeft="@dimen/dp_14"
                    android:layout_marginTop="@dimen/dp_10"
                    android:layout_marginRight="@dimen/dp_14"
                    android:descendantFocusability="blocksDescendants"
                    app:banner_indicator_normal_color="@color/transparent"
                    app:banner_indicator_selected_color="@color/transparent" />


                <androidx.viewpager.widget.ViewPager
                    android:id="@+id/viewpager_menu"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_93"
                    android:layout_marginTop="@dimen/dp_8"
                    android:layout_marginBottom="@dimen/dp_2" />


                <LinearLayout
                    android:id="@+id/ll_indicator"
                    android:layout_width="wrap_content"
                    android:layout_height="@dimen/dp_4"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginTop="2dp"
                    android:background="@drawable/bg_f2f2f2_indicator"
                    android:gravity="center"
                    android:orientation="horizontal">

                </LinearLayout>


                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/cl_live"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_60"
                    android:layout_marginLeft="@dimen/dp_14"
                    android:layout_marginTop="@dimen/dp_17"
                    android:layout_marginRight="@dimen/dp_14"
                    android:background="@drawable/bg_white_30dp"
                    android:visibility="visible">

                    <de.hdodenhof.circleimageview.CircleImageView
                        android:id="@+id/im_live_header"
                        android:layout_width="@dimen/dp_48"
                        android:layout_height="@dimen/dp_48"
                        android:layout_marginLeft="@dimen/dp_7"
                        android:src="@drawable/icon_student_default_head"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <ImageView
                        android:layout_width="@dimen/dp_20"
                        android:layout_height="@dimen/dp_20"
                        android:layout_marginLeft="@dimen/dp_41"
                        android:background="@drawable/icon_home_live_clock"
                        app:layout_constraintBottom_toBottomOf="@+id/im_live_header"
                        app:layout_constraintLeft_toLeftOf="parent" />


                    <TextView
                        android:id="@+id/tv_live_title"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/dp_74"
                        android:layout_marginTop="@dimen/dp_5"
                        android:layout_marginRight="@dimen/dp_120"
                        android:ellipsize="end"
                        android:lines="1"
                        android:text="竖笛直播课即将开始"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/sp_14"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintTop_toTopOf="@+id/im_live_header" />

                    <TextView
                        android:id="@+id/tv_live_time"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/dp_74"
                        android:layout_marginBottom="@dimen/dp_5"
                        android:text="今日 16:30-17:05"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/sp_12"
                        app:layout_constraintBottom_toBottomOf="@+id/im_live_header"
                        app:layout_constraintLeft_toLeftOf="parent" />

                    <View
                        android:id="@+id/view_live_line"
                        android:layout_width="1dp"
                        android:layout_height="@dimen/dp_30"
                        android:layout_marginRight="@dimen/dp_118"
                        android:background="@color/color_d8d8d8"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/tv_go_live"
                        android:layout_width="@dimen/dp_72"
                        android:layout_height="@dimen/dp_32"
                        android:layout_marginRight="@dimen/dp_19"
                        android:background="@drawable/shape_course_status_ing"
                        android:gravity="center"
                        android:text="进入课堂"
                        android:textColor="@color/white"
                        android:textSize="@dimen/sp_13"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />
                </androidx.constraintlayout.widget.ConstraintLayout>

                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/cl_hot_album"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:visibility="gone">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginLeft="@dimen/dp_16"
                        android:gravity="center"
                        android:text="热门专辑"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/sp_16"
                        android:textStyle="bold"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/tv_hot_album_more"
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginRight="@dimen/dp_38"
                        android:gravity="center"
                        android:text="更多"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/sp_12"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <ImageView
                        android:id="@+id/im_hot_album_more"
                        android:layout_width="@dimen/dp_10"
                        android:layout_height="@dimen/dp_10"
                        android:layout_marginRight="@dimen/dp_20"
                        android:background="@drawable/icon_next_right"
                        app:layout_constraintBottom_toBottomOf="@+id/tv_hot_album_more"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="@+id/tv_hot_album_more" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/rv_hot_album"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:overScrollMode="never"
                        android:paddingLeft="@dimen/dp_7"
                        android:paddingRight="@dimen/dp_7"
                        android:scrollbars="none"
                        app:layout_constraintTop_toBottomOf="@+id/tv_hot_album_more" />

                </androidx.constraintlayout.widget.ConstraintLayout>

                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/cl_live_course"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:visibility="gone">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginLeft="@dimen/dp_16"
                        android:gravity="center"
                        android:text="直播课"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/sp_16"
                        android:textStyle="bold"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/tv_live_course_more"
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginRight="@dimen/dp_38"
                        android:gravity="center"
                        android:text="更多"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/sp_12"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <ImageView
                        android:id="@+id/im_live_course_more"
                        android:layout_width="@dimen/dp_10"
                        android:layout_height="@dimen/dp_10"
                        android:layout_marginRight="@dimen/dp_20"
                        android:background="@drawable/icon_next_right"
                        app:layout_constraintBottom_toBottomOf="@+id/tv_live_course_more"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="@+id/tv_live_course_more" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/rv_live_course"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:overScrollMode="never"
                        android:paddingTop="@dimen/dp_7"
                        android:scrollbars="none"
                        app:layout_constraintTop_toBottomOf="@+id/tv_live_course_more" />

                </androidx.constraintlayout.widget.ConstraintLayout>

                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/cl_video_course"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:visibility="gone">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginLeft="@dimen/dp_16"
                        android:gravity="center"
                        android:text="视频课"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/sp_16"
                        android:textStyle="bold"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/tv_video_course_more"
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginRight="@dimen/dp_38"
                        android:gravity="center"
                        android:text="更多"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/sp_12"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <ImageView
                        android:id="@+id/im_video_course_more"
                        android:layout_width="@dimen/dp_10"
                        android:layout_height="@dimen/dp_10"
                        android:layout_marginRight="@dimen/dp_20"
                        android:background="@drawable/icon_next_right"
                        app:layout_constraintBottom_toBottomOf="@+id/tv_video_course_more"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="@+id/tv_video_course_more" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/rv_video_course"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:overScrollMode="never"
                        android:paddingTop="@dimen/dp_7"
                        android:scrollbars="none"
                        app:layout_constraintTop_toBottomOf="@+id/tv_video_course_more" />

                </androidx.constraintlayout.widget.ConstraintLayout>

                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/cl_teacher_style"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:visibility="gone">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginLeft="@dimen/dp_16"
                        android:gravity="center"
                        android:text="老师风采"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/sp_16"
                        android:textStyle="bold"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/tv_teacher_style_more"
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginRight="@dimen/dp_38"
                        android:gravity="center"
                        android:text="更多"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/sp_12"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <ImageView
                        android:id="@+id/im_teacher_style_more"
                        android:layout_width="@dimen/dp_10"
                        android:layout_height="@dimen/dp_10"
                        android:layout_marginRight="@dimen/dp_20"
                        android:background="@drawable/icon_next_right"
                        app:layout_constraintBottom_toBottomOf="@+id/tv_teacher_style_more"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="@+id/tv_teacher_style_more" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/rv_teacher_style"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:overScrollMode="never"
                        android:paddingLeft="@dimen/dp_8"
                        android:paddingTop="@dimen/dp_7"
                        android:paddingRight="@dimen/dp_8"
                        android:scrollbars="none"
                        app:layout_constraintTop_toBottomOf="@+id/tv_teacher_style_more" />

                </androidx.constraintlayout.widget.ConstraintLayout>

                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/cl_wonderful_info"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:visibility="gone">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginLeft="@dimen/dp_16"
                        android:gravity="center"
                        android:text="精彩资讯"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/sp_16"
                        android:textStyle="bold"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/tv_wonderful_info_more"
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/dp_37"
                        android:layout_marginRight="@dimen/dp_38"
                        android:gravity="center"
                        android:text="更多"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/sp_12"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <ImageView
                        android:id="@+id/im_wonderful_info_more"
                        android:layout_width="@dimen/dp_10"
                        android:layout_height="@dimen/dp_10"
                        android:layout_marginRight="@dimen/dp_20"
                        android:background="@drawable/icon_next_right"
                        app:layout_constraintBottom_toBottomOf="@+id/tv_wonderful_info_more"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="@+id/tv_wonderful_info_more" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/rv_wonderful_info"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/dp_15"
                        android:layout_marginRight="@dimen/dp_13"
                        android:background="@drawable/bg_white_10dp"
                        android:overScrollMode="never"
                        android:scrollbars="none"
                        app:layout_constraintTop_toBottomOf="@+id/tv_wonderful_info_more" />

                </androidx.constraintlayout.widget.ConstraintLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_100"
                    android:focusable="true"

                    android:focusableInTouchMode="true" />
            </LinearLayout>
        </androidx.core.widget.NestedScrollView>
    </com.scwang.smart.refresh.layout.SmartRefreshLayout>
</LinearLayout>