|
@@ -1,53 +1,112 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<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"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:id="@+id/ll_practice_set"
|
|
|
+ android:id="@+id/ll_content"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/dp_40"
|
|
|
- android:layout_marginLeft="14dp"
|
|
|
- android:layout_marginRight="14dp"
|
|
|
- android:layout_marginTop="14dp"
|
|
|
- android:background="@drawable/bg_border_e5_radius"
|
|
|
- android:gravity="center"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="@dimen/dp_26"
|
|
|
- android:layout_height="@dimen/dp_26"
|
|
|
- android:background="@drawable/icon_sparing_course_set" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="2dp"
|
|
|
- android:text="陪练课设置"
|
|
|
- android:textColor="@color/black_333"
|
|
|
- android:textSize="@dimen/sp_15" />
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_practice_set"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/dp_40"
|
|
|
+ android:layout_marginLeft="14dp"
|
|
|
+ android:layout_marginTop="14dp"
|
|
|
+ android:layout_marginRight="14dp"
|
|
|
+ android:background="@drawable/bg_border_e5_radius"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="6dp"
|
|
|
- android:layout_height="11dp"
|
|
|
- android:layout_marginLeft="8dp"
|
|
|
- android:background="@drawable/icon_go_right"/>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="@dimen/dp_26"
|
|
|
+ android:layout_height="@dimen/dp_26"
|
|
|
+ android:background="@drawable/icon_sparing_course_set" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="2dp"
|
|
|
+ android:text="陪练课设置"
|
|
|
+ android:textColor="@color/black_333"
|
|
|
+ android:textSize="@dimen/sp_15" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="6dp"
|
|
|
+ android:layout_height="11dp"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:background="@drawable/icon_go_right" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <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.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/recyclerView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:scrollbars="none" />
|
|
|
+ </com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
|
- android:id="@+id/refreshLayout"
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_empty_flag"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
- <com.scwang.smart.refresh.header.ClassicsHeader
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
- android:id="@+id/recyclerView"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:overScrollMode="never"
|
|
|
- android:scrollbars="none" />
|
|
|
- </com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
-</LinearLayout>
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/im_empty_logo"
|
|
|
+ android:layout_width="@dimen/dp_260"
|
|
|
+ android:layout_height="@dimen/dp_230"
|
|
|
+ android:background="@drawable/icon_empty_mine_course"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_empty_hint"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="14dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:lineSpacingExtra="4dp"
|
|
|
+ android:text="您还没有完成老师认证\n认证后才可创建直播课哦~"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/im_empty_logo" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_open"
|
|
|
+ android:layout_width="@dimen/dp_196"
|
|
|
+ android:layout_height="@dimen/dp_44"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:background="@drawable/shape_course_status_ing"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="去认证"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_empty_hint" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+</RelativeLayout>
|